<?php namespace MailPoet\Doctrine; if (!defined('ABSPATH')) exit; use MailPoetVendor\Psr\Cache\CacheItemInterface; class PSRCacheItem implements CacheItemInterface { /** @var string */ private $key; /** @var mixed */ private $value; /** @var bool */ private $isHit; public function __construct(string $key, bool $isHit) { $this->key = $key; $this->isHit = $isHit; } /** * @inheritDoc */ public function getKey(): string { return $this->key; } /** * @inheritDoc */ public function get() { return $this->value; } /** * @inheritDoc */ public function isHit(): bool { // TODO: Implement isHit() method. return $this->isHit; } /** * @inheritDoc */ public function set($value) { $this->value = $value; return $this; } /** * @inheritDoc */ public function expiresAt($expiration) { return $this; } /** * @inheritDoc */ public function expiresAfter($time) { return $this; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Annotations | Folder | 0755 |
|
|
EntityTraits | Folder | 0755 |
|
|
EventListeners | Folder | 0755 |
|
|
Types | Folder | 0755 |
|
|
Validator | Folder | 0755 |
|
|
ConfigurationFactory.php | File | 2.84 KB | 0644 |
|
ConnectionFactory.php | File | 3.19 KB | 0644 |
|
EntityManagerFactory.php | File | 2.5 KB | 0644 |
|
MetadataCache.php | File | 2.8 KB | 0644 |
|
PSRCacheInvalidArgumentException.php | File | 225 B | 0644 |
|
PSRCacheItem.php | File | 1010 B | 0644 |
|
PSRMetadataCache.php | File | 2.23 KB | 0644 |
|
ProxyClassNameResolver.php | File | 1.02 KB | 0644 |
|
Repository.php | File | 2.62 KB | 0644 |
|
SerializableConnection.php | File | 937 B | 0644 |
|
TablePrefixMetadataFactory.php | File | 2.46 KB | 0644 |
|
index.php | File | 0 B | 0644 |
|