/** * @param LoggerInterface $logger * @return CacheTool */ public function setLogger(LoggerInterface $logger) { $this->logger = $logger; if ($this->adapter instanceof AbstractAdapter) { $this->adapter->setLogger($logger); } return $this; }
/** * Evaluate a string as PHP code * * @param string $expression Evaluates the given code as PHP * @return mixed */ public function _eval($expression) { $code = new Code(); $code->addStatement($expression); return $this->adapter->run($code); }
/** * @return string */ public function opcache_version() { $code = new Code(); $code->addStatement('return phpversion("Zend OPcache");'); return $this->adapter->run($code); }
/** * @return string */ public function apc_version() { $code = new Code(); $code->addStatement('return phpversion("apc");'); return $this->adapter->run($code); }