Conditions | 4 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function cacheKey(): string |
||
15 | { |
||
16 | $reflection = (new \ReflectionClass($this)); |
||
17 | |||
18 | $key = 'auto_'.strtolower(str_replace('\\', '-', $reflection->getName())); |
||
19 | |||
20 | if (count($reflection->getProperties())) { |
||
21 | foreach ($reflection->getProperties() as $property) { |
||
22 | if ($property->getName() != 'ttl') { |
||
23 | $key .= ':'.$this->{$property->getName()}; |
||
24 | } |
||
25 | } |
||
26 | } |
||
27 | |||
28 | return $key; |
||
29 | } |
||
31 |