| 1 | <?php |
||
| 8 | trait FileCacheTrait |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @param string $name |
||
| 13 | * @return mixed |
||
| 14 | */ |
||
| 15 | 4 | protected function includeFile(string $name) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $name |
||
| 27 | * @param string $content |
||
| 28 | */ |
||
| 29 | 1 | protected function dumpCacheFile(string $name, string $content) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $name |
||
| 38 | * @param mixed $variable |
||
| 39 | */ |
||
| 40 | 1 | protected function dumpVariableToCache(string $name, $variable) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @param string $name |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | 4 | private function getCacheFileName($name) |
|
| 53 | } |
||
| 54 |