1 | <?php declare(strict_types=1); |
||
35 | class RelationshipDataIsCollection extends BaseRelationshipData implements RelationshipDataInterface |
||
36 | { |
||
37 | /** @var string */ |
||
38 | public const MSG_INVALID_OPERATION = 'Invalid operation.'; |
||
39 | |||
40 | /** |
||
41 | * @var iterable |
||
42 | */ |
||
43 | private $resources; |
||
44 | |||
45 | /** |
||
46 | * @var iterable |
||
47 | */ |
||
48 | private $parsedResources = null; |
||
49 | |||
50 | /** |
||
51 | * @param FactoryInterface $factory |
||
52 | * @param SchemaContainerInterface $schemaContainer |
||
53 | * @param EditableContextInterface $context |
||
54 | * @param PositionInterface $position |
||
55 | * @param iterable $resources |
||
56 | */ |
||
57 | 36 | public function __construct( |
|
68 | |||
69 | /** |
||
70 | * @inheritdoc |
||
71 | */ |
||
72 | 35 | public function isCollection(): bool |
|
76 | |||
77 | /** |
||
78 | * @inheritdoc |
||
79 | */ |
||
80 | 1 | public function isNull(): bool |
|
84 | |||
85 | /** |
||
86 | * @inheritdoc |
||
87 | */ |
||
88 | 35 | public function isResource(): bool |
|
92 | |||
93 | /** |
||
94 | * @inheritdoc |
||
95 | */ |
||
96 | 32 | public function isIdentifier(): bool |
|
100 | |||
101 | /** |
||
102 | * @inheritdoc |
||
103 | */ |
||
104 | 1 | public function getIdentifier(): ParserIdentifierInterface |
|
108 | |||
109 | /** |
||
110 | * @inheritdoc |
||
111 | */ |
||
112 | 31 | public function getIdentifiers(): iterable |
|
116 | |||
117 | /** |
||
118 | * @inheritdoc |
||
119 | */ |
||
120 | 1 | public function getResource(): ResourceInterface |
|
124 | |||
125 | /** |
||
126 | * @inheritdoc |
||
127 | */ |
||
128 | 34 | public function getResources(): iterable |
|
145 | } |
||
146 |