| Total Complexity | 5 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class CacheData |
||
| 8 | { |
||
| 9 | public const PAYLOAD_KEY_DATE = 'date'; |
||
| 10 | public const PAYLOAD_KEY_SUBTEMPLATES = 'subTemplates'; |
||
| 11 | |||
| 12 | protected string $date = ''; |
||
| 13 | |||
| 14 | /** @var string[][] */ |
||
| 15 | protected array $subTemplates = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $date |
||
| 19 | * |
||
| 20 | * @return $this |
||
| 21 | */ |
||
| 22 | public function setDate(string $date): CacheData |
||
| 23 | { |
||
| 24 | $this->date = $date; |
||
| 25 | |||
| 26 | return $this; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param array $subTemplates |
||
| 31 | * |
||
| 32 | * @return $this |
||
| 33 | */ |
||
| 34 | public function setSubTemplates(array $subTemplates): CacheData |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function getDate(): string |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string[][] |
||
| 55 | */ |
||
| 56 | public function getSubTemplates(): array |
||
| 59 | } |
||
| 60 | } |
||
| 61 |