1 | <?php |
||
23 | class DataObject extends AbstractResource implements DataObjectInterface |
||
24 | { |
||
25 | /** |
||
26 | * Datatype. |
||
27 | * |
||
28 | * @var CollectionInterface |
||
29 | */ |
||
30 | protected $collection; |
||
31 | |||
32 | /** |
||
33 | * Data object relation factory. |
||
34 | * |
||
35 | * @var DataObjectRelationFactory |
||
36 | */ |
||
37 | protected $relation_factory; |
||
38 | |||
39 | /** |
||
40 | * Relations. |
||
41 | * |
||
42 | * @var null|array |
||
43 | */ |
||
44 | protected $relations; |
||
45 | |||
46 | /** |
||
47 | * Data object. |
||
48 | */ |
||
49 | public function __construct(array $resource, CollectionInterface $collection, DataObjectRelationFactory $relation_factory) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function decorate(ServerRequestInterface $request): array |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function getHistory(?array $query = null, ?int $offset = null, ?int $limit = null): iterable |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public function toArray(): array |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | public function getCollection(): CollectionInterface |
||
118 | |||
119 | /** |
||
120 | * Get endpoints. |
||
121 | */ |
||
122 | public function getEndpoints(): array |
||
130 | |||
131 | /** |
||
132 | * Add or update relation. |
||
133 | */ |
||
134 | public function createOrUpdateRelation(DataObjectInterface $object, array $context = [], bool $simulate = false, ?array $endpoints = null): ObjectIdInterface |
||
138 | |||
139 | /** |
||
140 | * Delete relation. |
||
141 | */ |
||
142 | public function deleteRelation(DataObjectInterface $object, bool $simulate = false): bool |
||
146 | |||
147 | /** |
||
148 | * Get relations as array (and cache). |
||
149 | */ |
||
150 | public function getResolvedRelationsAsArray(): array |
||
163 | |||
164 | /** |
||
165 | * Get relatives. |
||
166 | */ |
||
167 | public function getRelations(): Generator |
||
171 | |||
172 | /** |
||
173 | * Get relative. |
||
174 | */ |
||
175 | public function getRelation(string $name): Generator |
||
179 | } |
||
180 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.