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 getData(): array |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | public function getCollection(): CollectionInterface |
||
104 | |||
105 | /** |
||
106 | * Get endpoints. |
||
107 | */ |
||
108 | public function getEndpoints(): array |
||
116 | |||
117 | /** |
||
118 | * Add relation. |
||
119 | */ |
||
120 | public function createOrUpdateRelation(DataObjectInterface $object, array $context = [], bool $simulate = false, ?array $endpoints = null): ObjectIdInterface |
||
124 | |||
125 | /** |
||
126 | * Get relatives. |
||
127 | */ |
||
128 | public function getRelations(): Generator |
||
132 | |||
133 | /** |
||
134 | * Get relative. |
||
135 | */ |
||
136 | public function getRelation(string $name): Generator |
||
140 | } |
||
141 |
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.