Issues (61)

src/ResourceStorageInterface.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\QueryRepository;
6
7
use BEAR\Resource\AbstractUri;
8
use BEAR\Resource\ResourceObject;
9
10
interface ResourceStorageInterface
11
{
12
    /**
13
     * Is ETag registered ?
14
     */
15
    public function hasEtag(string $etag): bool;
16
17
    /**
18
     * Save Etag
19
     */
20
    public function saveEtag(AbstractUri $uri, string $etag, string $surrogateKeys, int|null $ttl): void;
21
22
    /**
23
     * Delete Etag
24
     *
25
     * @return bool
26
     */
27
    public function deleteEtag(AbstractUri $uri);
28
29
    /**
30
     * Return cached resource state
31
     */
32
    public function get(AbstractUri $uri): ResourceState|null;
33
34
    /**
35
     * Save resource cache with value
36
     *
37
     * @return bool
38
     */
39
    public function saveValue(ResourceObject $ro, int $ttl);
40
41
    /**
42
     * Save resource cache with view
43
     *
44
     * @return bool
45
     */
46
    public function saveView(ResourceObject $ro, int $ttl);
47
48
    /**
49
     * Return cached resource static
50
     */
51
    public function getDonut(AbstractUri $uri): ResourceDonut|null;
52
53
    /**
54
     * Save donut-cacheable page
55
     *
56
     * @param list<string> $headerKeys
0 ignored issues
show
The type BEAR\QueryRepository\list was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
57
     */
58
    public function saveDonut(AbstractUri $uri, ResourceDonut $donut, int|null $sMaxAge, array $headerKeys): void;
59
60
    /**
61
     * Save donut-cache state
62
     */
63
    public function saveDonutView(ResourceObject $ro, int|null $ttl): bool;
64
65
    /**
66
     * Invalidate tags
67
     *
68
     * @param list<string> $tags
69
     */
70
    public function invalidateTags(array $tags): bool;
71
}
72