1 | <?php declare(strict_types=1); |
||
33 | class RelationshipDataIsCollection extends BaseRelationshipData implements RelationshipDataInterface |
||
34 | { |
||
35 | /** @var string */ |
||
36 | public const MSG_INVALID_OPERATION = 'Invalid operation.'; |
||
37 | |||
38 | /** |
||
39 | * @var iterable |
||
40 | */ |
||
41 | private $resources; |
||
42 | |||
43 | /** |
||
44 | * @var iterable |
||
45 | */ |
||
46 | private $parsedResources = null; |
||
47 | |||
48 | /** |
||
49 | * @param FactoryInterface $factory |
||
50 | * @param SchemaContainerInterface $schemaContainer |
||
51 | * @param PositionInterface $position |
||
52 | * @param iterable $resources |
||
53 | */ |
||
54 | 31 | public function __construct( |
|
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | 30 | public function isCollection(): bool |
|
72 | |||
73 | /** |
||
74 | * @inheritdoc |
||
75 | */ |
||
76 | public function isNull(): bool |
||
80 | |||
81 | /** |
||
82 | * @inheritdoc |
||
83 | */ |
||
84 | 30 | public function isResource(): bool |
|
88 | |||
89 | /** |
||
90 | * @inheritdoc |
||
91 | */ |
||
92 | 27 | public function isIdentifier(): bool |
|
96 | |||
97 | /** |
||
98 | * @inheritdoc |
||
99 | */ |
||
100 | public function getIdentifier(): IdentifierInterface |
||
104 | |||
105 | /** |
||
106 | * @inheritdoc |
||
107 | */ |
||
108 | 27 | public function getIdentifiers(): iterable |
|
112 | |||
113 | /** |
||
114 | * @inheritdoc |
||
115 | */ |
||
116 | public function getResource(): ResourceInterface |
||
120 | |||
121 | /** |
||
122 | * @inheritdoc |
||
123 | */ |
||
124 | 30 | public function getResources(): iterable |
|
139 | } |
||
140 |