| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 17 | class AppResource implements SelfCheckingResourceInterface |
||
| 18 | { |
||
| 19 | public function __construct(private string $resource = \PHP_VERSION_ID.\PHP_SAPI.\PHP_OS) |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | public function __toString(): string |
||
| 27 | { |
||
| 28 | return __CLASS__; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function isFresh(int $timestamp): bool |
||
| 37 | } |
||
| 38 | } |
||
| 39 |