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 | * Data object. |
||
41 | */ |
||
42 | public function __construct(array $resource, CollectionInterface $collection, DataObjectRelationFactory $relation_factory) |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function decorate(ServerRequestInterface $request): array |
||
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | public function getHistory(?array $query = null, ?int $offset = null, ?int $limit = null): Iterable |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public function toArray(): array |
||
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | public function getCollection(): CollectionInterface |
||
108 | |||
109 | /** |
||
110 | * Get endpoints. |
||
111 | */ |
||
112 | public function getEndpoints(): array |
||
120 | |||
121 | /** |
||
122 | * Add or update relation. |
||
123 | */ |
||
124 | public function createOrUpdateRelation(DataObjectInterface $object, array $context = [], bool $simulate = false, ?array $endpoints = null): ObjectIdInterface |
||
128 | |||
129 | /** |
||
130 | * Delete relation. |
||
131 | */ |
||
132 | public function deleteRelation(DataObjectInterface $object, bool $simulate = false): bool |
||
136 | |||
137 | /** |
||
138 | * Get relatives. |
||
139 | */ |
||
140 | public function getRelations(): Generator |
||
144 | |||
145 | /** |
||
146 | * Get relative. |
||
147 | */ |
||
148 | public function getRelation(string $name): Generator |
||
152 | } |
||
153 |
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.