Issues (108)

src/RequestInterface.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Resource;
6
7
/**
8
 * @property AbstractRequest $eager
9
 * @property AbstractRequest $lazy
10
 * @psalm-import-type Query from Types
11
 */
12
interface RequestInterface
13
{
14
    /**
15
     * InvokerInterface resource request
16
     *
17
     * @param Query $query
0 ignored issues
show
The type BEAR\Resource\Query 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...
18
     */
19
    public function __invoke(array|null $query = null): ResourceObject;
20
21
    /**
22
     * Set query
23
     *
24
     * @param Query $query
25
     */
26
    public function withQuery(array $query): self;
27
28
    /**
29
     * Merge query
30
     *
31
     * @param Query $query
32
     */
33
    public function addQuery(array $query): self;
34
35
    /**
36
     * To Request URI string
37
     */
38
    public function toUri(): string;
39
40
    /**
41
     * To Request URI string with request method
42
     */
43
    public function toUriWithMethod(): string;
44
45
    /**
46
     * Return request hash
47
     */
48
    public function hash(): string;
49
50
    /** @return AbstractRequest|ResourceObject */
51
    public function request();
52
53
    /**
54
     * Replace linked resource
55
     */
56
    public function linkSelf(string $linkKey): self;
57
58
    /**
59
     * Add linked resource
60
     */
61
    public function linkNew(string $linkKey): self;
62
63
    /**
64
     * Crawl resource with link key
65
     */
66
    public function linkCrawl(string $linkKey): self;
67
}
68