| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | trait TTLValidatorTrait |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Verifies the the given cache expires is a legal value. |
||
| 12 | * |
||
| 13 | * @param mixed $ttl The cache ttl value to validate. |
||
| 14 | * |
||
| 15 | * @return void |
||
| 16 | * |
||
| 17 | * @throws InvalidArgumentException Thrown if $ttl is not null, integer or a \DateInterval instance |
||
| 18 | */ |
||
| 19 | protected function validateTTL($ttl) |
||
| 36 |