1 | <?php |
||
18 | final class CliHttpCache implements HttpCacheInterface |
||
19 | { |
||
20 | /** @var ResourceStorageInterface */ |
||
21 | private $storage; |
||
22 | |||
23 | public function __construct(ResourceStorageInterface $storage) |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function isNotModified(array $server): bool |
||
32 | { |
||
33 | $etag = $this->getEtag($server); |
||
34 | if ($etag === null) { |
||
35 | return false; |
||
36 | } |
||
37 | |||
38 | return $this->storage->hasEtag($etag); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | * |
||
44 | * @return void |
||
45 | */ |
||
46 | public function transfer() |
||
50 | |||
51 | /** |
||
52 | * @return array<string, string> |
||
|
|||
53 | */ |
||
54 | private function getServer(string $query): array |
||
66 | |||
67 | private function getServerKey(string $key): string |
||
71 | |||
72 | /** |
||
73 | * @param array<string, mixed> $server |
||
74 | */ |
||
75 | private function getEtag(array $server): ?string |
||
86 | } |
||
87 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.