. */ namespace Doctrine\ORM\Cache; /** * Query cache entry * * @since 2.5 * @author Fabio B. Silva */ class QueryCacheEntry implements CacheEntry { /** * @var array */ public $result; /** * @var integer */ public $time; /** * @param array $result * @param integer $time */ public function __construct($result, $time = null) { $this->result = $result; $this->time = $time ?: time(); } /** * @param array $values */ public static function __set_state(array $values) { return new self($values['result'], $values['time']); } }