1 | <?php declare(strict_types=1); |
||
34 | class RelationshipDataIsResource extends BaseRelationshipData implements RelationshipDataInterface |
||
35 | { |
||
36 | /** @var string */ |
||
37 | public const MSG_INVALID_OPERATION = 'Invalid operation.'; |
||
38 | |||
39 | /** |
||
40 | * @var mixed |
||
41 | */ |
||
42 | private $resource; |
||
43 | |||
44 | /** |
||
45 | * @var null|ResourceInterface |
||
46 | */ |
||
47 | private $parsedResource = null; |
||
48 | |||
49 | /** |
||
50 | * @param FactoryInterface $factory |
||
51 | * @param SchemaContainerInterface $schemaContainer |
||
52 | * @param EditableContextInterface $context |
||
53 | * @param PositionInterface $position |
||
54 | * @param mixed $resource |
||
55 | */ |
||
56 | 28 | public function __construct( |
|
67 | |||
68 | /** |
||
69 | * @inheritdoc |
||
70 | */ |
||
71 | 1 | public function isCollection(): bool |
|
75 | |||
76 | /** |
||
77 | * @inheritdoc |
||
78 | */ |
||
79 | 1 | public function isNull(): bool |
|
83 | |||
84 | /** |
||
85 | * @inheritdoc |
||
86 | */ |
||
87 | 27 | public function isResource(): bool |
|
91 | |||
92 | /** |
||
93 | * @inheritdoc |
||
94 | */ |
||
95 | 1 | public function isIdentifier(): bool |
|
99 | |||
100 | /** |
||
101 | * @inheritdoc |
||
102 | */ |
||
103 | 1 | public function getIdentifier(): IdentifierInterface |
|
107 | |||
108 | /** |
||
109 | * @inheritdoc |
||
110 | */ |
||
111 | 1 | public function getIdentifiers(): iterable |
|
115 | |||
116 | /** |
||
117 | * @inheritdoc |
||
118 | */ |
||
119 | 26 | public function getResource(): ResourceInterface |
|
127 | |||
128 | /** |
||
129 | * @inheritdoc |
||
130 | */ |
||
131 | 1 | public function getResources(): iterable |
|
135 | } |
||
136 |