1 | <?php declare(strict_types=1); |
||
34 | class RelationshipDataIsIdentifier extends BaseRelationshipData implements RelationshipDataInterface |
||
35 | { |
||
36 | /** @var string */ |
||
37 | public const MSG_INVALID_OPERATION = 'Invalid operation.'; |
||
38 | |||
39 | /** |
||
40 | * @var mixed |
||
41 | */ |
||
42 | private $identifier; |
||
43 | |||
44 | /** |
||
45 | * @var null|ParserIdentifierInterface |
||
46 | */ |
||
47 | private $parsedIdentifier = null; |
||
48 | |||
49 | /** |
||
50 | * @param FactoryInterface $factory |
||
51 | * @param SchemaContainerInterface $schemaContainer |
||
52 | * @param PositionInterface $position |
||
53 | * @param SchemaIdentifierInterface $identifier |
||
54 | */ |
||
55 | 1 | public function __construct( |
|
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | public function isCollection(): bool |
||
73 | |||
74 | /** |
||
75 | * @inheritdoc |
||
76 | */ |
||
77 | public function isNull(): bool |
||
81 | |||
82 | /** |
||
83 | * @inheritdoc |
||
84 | */ |
||
85 | 1 | public function isResource(): bool |
|
89 | |||
90 | /** |
||
91 | * @inheritdoc |
||
92 | */ |
||
93 | 1 | public function isIdentifier(): bool |
|
97 | |||
98 | /** |
||
99 | * @inheritdoc |
||
100 | */ |
||
101 | 1 | public function getIdentifier(): ParserIdentifierInterface |
|
109 | |||
110 | /** |
||
111 | * @inheritdoc |
||
112 | */ |
||
113 | public function getIdentifiers(): iterable |
||
117 | |||
118 | /** |
||
119 | * @inheritdoc |
||
120 | */ |
||
121 | public function getResource(): ResourceInterface |
||
125 | |||
126 | /** |
||
127 | * @inheritdoc |
||
128 | */ |
||
129 | public function getResources(): iterable |
||
133 | } |
||
134 |