Issues (31)

src/Interfaces/OneRelationInterface.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Swis\JsonApi\Client\Interfaces;
6
7
use Swis\JsonApi\Client\Links;
8
use Swis\JsonApi\Client\Meta;
9
10
/**
11
 * @template TItem of \Swis\JsonApi\Client\Interfaces\ItemInterface
12
 */
13
interface OneRelationInterface
14
{
15
    /**
16
     * @param  TItem|null  $data
0 ignored issues
show
The type Swis\JsonApi\Client\Interfaces\TItem 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...
17
     * @return static
18
     */
19
    public function setData(?ItemInterface $data);
20
21
    /**
22
     * @return TItem|null
23
     */
24
    public function getData(): ?ItemInterface;
25
26
    public function hasData(): bool;
27
28
    /**
29
     * @param  TItem|null  $included
30
     */
31
    public function setIncluded(?ItemInterface $included);
32
33
    /**
34
     * @return TItem|null
35
     */
36
    public function getIncluded(): ?ItemInterface;
37
38
    public function hasIncluded(): bool;
39
40
    /**
41
     * @param  TItem  $included
42
     * @return static
43
     */
44
    public function associate(ItemInterface $included);
45
46
    /**
47
     * @return static
48
     */
49
    public function dissociate();
50
51
    /**
52
     * @return TItem|null
53
     */
54
    public function getAssociated(): ?ItemInterface;
55
56
    public function hasAssociated(): bool;
57
58
    /**
59
     * @return static
60
     */
61
    public function setOmitIncluded(bool $omitIncluded);
62
63
    public function shouldOmitIncluded(): bool;
64
65
    public function setLinks(?Links $links);
66
67
    public function getLinks(): ?Links;
68
69
    public function setMeta(?Meta $meta);
70
71
    public function getMeta(): ?Meta;
72
}
73