1 | <?php declare(strict_types=1); |
||
35 | class RelationshipDataIsIdentifier extends BaseRelationshipData implements RelationshipDataInterface |
||
36 | { |
||
37 | /** @var string */ |
||
38 | public const MSG_INVALID_OPERATION = 'Invalid operation.'; |
||
39 | |||
40 | /** |
||
41 | * @var mixed |
||
42 | */ |
||
43 | private $identifier; |
||
44 | |||
45 | /** |
||
46 | * @var null|ParserIdentifierInterface |
||
47 | */ |
||
48 | private $parsedIdentifier = null; |
||
49 | |||
50 | /** |
||
51 | * @param FactoryInterface $factory |
||
52 | * @param SchemaContainerInterface $schemaContainer |
||
53 | * @param EditableContextInterface $context |
||
54 | * @param PositionInterface $position |
||
55 | * @param SchemaIdentifierInterface $identifier |
||
56 | */ |
||
57 | 2 | public function __construct( |
|
68 | |||
69 | /** |
||
70 | * @inheritdoc |
||
71 | */ |
||
72 | 1 | public function isCollection(): bool |
|
76 | |||
77 | /** |
||
78 | * @inheritdoc |
||
79 | */ |
||
80 | 1 | public function isNull(): bool |
|
84 | |||
85 | /** |
||
86 | * @inheritdoc |
||
87 | */ |
||
88 | 2 | public function isResource(): bool |
|
92 | |||
93 | /** |
||
94 | * @inheritdoc |
||
95 | */ |
||
96 | 2 | public function isIdentifier(): bool |
|
100 | |||
101 | /** |
||
102 | * @inheritdoc |
||
103 | */ |
||
104 | 1 | public function getIdentifier(): ParserIdentifierInterface |
|
112 | |||
113 | /** |
||
114 | * @inheritdoc |
||
115 | */ |
||
116 | 1 | public function getIdentifiers(): iterable |
|
120 | |||
121 | /** |
||
122 | * @inheritdoc |
||
123 | */ |
||
124 | 1 | public function getResource(): ResourceInterface |
|
128 | |||
129 | /** |
||
130 | * @inheritdoc |
||
131 | */ |
||
132 | 1 | public function getResources(): iterable |
|
136 | } |
||
137 |