1 | <?php |
||
9 | final class Cache implements CacheProviderInterface |
||
10 | { |
||
11 | public const CACHE_PREFIX = 'twig-view-in-template-item-'; |
||
12 | |||
13 | /** |
||
14 | * Retrieve data from the cache. |
||
15 | * |
||
16 | * @param string $identifier Identifier for this bit of data to read. |
||
17 | * |
||
18 | * @return mixed The cached data, or false if the data doesn't exist, has expired, or on error while fetching. |
||
19 | */ |
||
20 | public function fetch($identifier) |
||
26 | |||
27 | /** |
||
28 | * Save data to the cache. |
||
29 | * |
||
30 | * @param string $identifier Identifier for this bit of data to write. |
||
31 | * @param string $data Data to cache. |
||
32 | * @param int $lifeTime Time to life inside the cache. |
||
33 | * |
||
34 | * @return bool |
||
35 | */ |
||
36 | public function save($identifier, $data, $lifeTime = 0): bool |
||
42 | |||
43 | /** |
||
44 | * Extract $configName and $key from $name and $config. |
||
45 | * |
||
46 | * @param string $name Name. |
||
47 | * @param string $config Cache configuration name to used. |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | protected function configSplit($name, $config = 'default'): array |
||
61 | } |
||
62 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.