1 | <?php |
||
23 | class ModelManager implements ModelManagerInterface, LockInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var FooRepository |
||
27 | */ |
||
28 | private $repository; |
||
29 | |||
30 | public function __construct(FooRepository $repository) |
||
34 | |||
35 | public function getNewFieldDescriptionInstance($class, $name, array $options = []) |
||
51 | |||
52 | public function create($object): void |
||
55 | |||
56 | public function update($object): void |
||
59 | |||
60 | public function delete($object): void |
||
63 | |||
64 | public function findBy($class, array $criteria = []) |
||
68 | |||
69 | public function findOneBy($class, array $criteria = []) |
||
73 | |||
74 | public function find($class, $id) |
||
78 | |||
79 | public function batchDelete($class, ProxyQueryInterface $queryProxy): void |
||
82 | |||
83 | public function getParentFieldDescription($parentAssociationMapping, $class): FieldDescriptionInterface |
||
87 | |||
88 | public function createQuery($class, $alias = 'o'): ProxyQueryInterface |
||
92 | |||
93 | public function getModelIdentifier($class) |
||
97 | |||
98 | public function getIdentifierValues($model) |
||
102 | |||
103 | public function getIdentifierFieldNames($class) |
||
107 | |||
108 | public function getNormalizedIdentifier($model) |
||
112 | |||
113 | public function getUrlSafeIdentifier($model) |
||
117 | |||
118 | public function getModelInstance($class) |
||
127 | |||
128 | public function getModelCollectionInstance($class) |
||
132 | |||
133 | public function collectionRemoveElement(&$collection, &$element): void |
||
136 | |||
137 | public function collectionAddElement(&$collection, &$element): void |
||
140 | |||
141 | public function collectionHasElement(&$collection, &$element): void |
||
144 | |||
145 | public function collectionClear(&$collection): void |
||
148 | |||
149 | public function getSortParameters(FieldDescriptionInterface $fieldDescription, DatagridInterface $datagrid) |
||
153 | |||
154 | public function getDefaultSortValues($class) |
||
158 | |||
159 | public function getDefaultPerPageOptions(string $class): array |
||
163 | |||
164 | public function modelReverseTransform($class, array $array = []): object |
||
168 | |||
169 | public function modelTransform($class, $instance): object |
||
173 | |||
174 | public function executeQuery($query): void |
||
177 | |||
178 | public function getDataSourceIterator(DatagridInterface $datagrid, array $fields, $firstResult = null, $maxResult = null): void |
||
181 | |||
182 | public function getExportFields($class) |
||
186 | |||
187 | public function getPaginationParameters(DatagridInterface $datagrid, $page) |
||
191 | |||
192 | public function addIdentifiersToQuery($class, ProxyQueryInterface $query, array $idx): void |
||
195 | |||
196 | public function getLockVersion($object) |
||
200 | |||
201 | public function lock($object, $expectedVersion) |
||
204 | } |
||
205 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.