@@ -56,7 +56,7 @@ |
||
| 56 | 56 | public function setSortOrder($sortOrder); |
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | - * @return array<string, string> |
|
| 59 | + * @return void string> |
|
| 60 | 60 | */ |
| 61 | 61 | public function getSortOrder(); |
| 62 | 62 | |
@@ -37,6 +37,7 @@ discard block |
||
| 37 | 37 | * @param object $object |
| 38 | 38 | * |
| 39 | 39 | * @throws ModelManagerException |
| 40 | + * @return void |
|
| 40 | 41 | */ |
| 41 | 42 | public function create($object); |
| 42 | 43 | |
@@ -44,6 +45,7 @@ discard block |
||
| 44 | 45 | * @param object $object |
| 45 | 46 | * |
| 46 | 47 | * @throws ModelManagerException |
| 48 | + * @return void |
|
| 47 | 49 | */ |
| 48 | 50 | public function update($object); |
| 49 | 51 | |
@@ -51,6 +53,7 @@ discard block |
||
| 51 | 53 | * @param object $object |
| 52 | 54 | * |
| 53 | 55 | * @throws ModelManagerException |
| 56 | + * @return void |
|
| 54 | 57 | */ |
| 55 | 58 | public function delete($object); |
| 56 | 59 | |
@@ -72,7 +75,7 @@ discard block |
||
| 72 | 75 | * @param string $class |
| 73 | 76 | * @param mixed $id |
| 74 | 77 | * |
| 75 | - * @return object|null the object with id or null if not found |
|
| 78 | + * @return \Sonata\AdminBundle\Tests\App\Model\Foo|null the object with id or null if not found |
|
| 76 | 79 | */ |
| 77 | 80 | public function find($class, $id); |
| 78 | 81 | |
@@ -80,12 +83,14 @@ discard block |
||
| 80 | 83 | * @param string $class |
| 81 | 84 | * |
| 82 | 85 | * @throws ModelManagerException |
| 86 | + * @return void |
|
| 83 | 87 | */ |
| 84 | 88 | public function batchDelete($class, ProxyQueryInterface $queryProxy); |
| 85 | 89 | |
| 86 | 90 | /** |
| 87 | 91 | * @param array $parentAssociationMapping |
| 88 | 92 | * @param string $class |
| 93 | + * @return void |
|
| 89 | 94 | */ |
| 90 | 95 | public function getParentFieldDescription($parentAssociationMapping, $class); |
| 91 | 96 | |
@@ -172,6 +177,7 @@ discard block |
||
| 172 | 177 | * |
| 173 | 178 | * @param array $collection |
| 174 | 179 | * @param object $element |
| 180 | + * @return void |
|
| 175 | 181 | */ |
| 176 | 182 | public function collectionRemoveElement(&$collection, &$element); |
| 177 | 183 | |
@@ -180,6 +186,7 @@ discard block |
||
| 180 | 186 | * |
| 181 | 187 | * @param array $collection |
| 182 | 188 | * @param object $element |
| 189 | + * @return void |
|
| 183 | 190 | */ |
| 184 | 191 | public function collectionAddElement(&$collection, &$element); |
| 185 | 192 | |
@@ -197,13 +204,14 @@ discard block |
||
| 197 | 204 | * Clear the collection. |
| 198 | 205 | * |
| 199 | 206 | * @param array $collection |
| 207 | + * @return void |
|
| 200 | 208 | */ |
| 201 | 209 | public function collectionClear(&$collection); |
| 202 | 210 | |
| 203 | 211 | /** |
| 204 | 212 | * Returns the parameters used in the columns header. |
| 205 | 213 | * |
| 206 | - * @return array<string, mixed> |
|
| 214 | + * @return void mixed> |
|
| 207 | 215 | */ |
| 208 | 216 | public function getSortParameters(FieldDescriptionInterface $fieldDescription, DatagridInterface $datagrid); |
| 209 | 217 | |
@@ -216,17 +224,20 @@ discard block |
||
| 216 | 224 | |
| 217 | 225 | /** |
| 218 | 226 | * @param string $class |
| 227 | + * @return void |
|
| 219 | 228 | */ |
| 220 | 229 | public function modelReverseTransform($class, array $array = []); |
| 221 | 230 | |
| 222 | 231 | /** |
| 223 | 232 | * @param string $class |
| 224 | 233 | * @param object $instance |
| 234 | + * @return void |
|
| 225 | 235 | */ |
| 226 | 236 | public function modelTransform($class, $instance); |
| 227 | 237 | |
| 228 | 238 | /** |
| 229 | 239 | * @param mixed $query |
| 240 | + * @return void |
|
| 230 | 241 | */ |
| 231 | 242 | public function executeQuery($query); |
| 232 | 243 | |
@@ -259,6 +270,7 @@ discard block |
||
| 259 | 270 | |
| 260 | 271 | /** |
| 261 | 272 | * @param string $class |
| 273 | + * @return void |
|
| 262 | 274 | */ |
| 263 | 275 | public function addIdentifiersToQuery($class, ProxyQueryInterface $query, array $idx); |
| 264 | 276 | } |
@@ -46,6 +46,7 @@ |
||
| 46 | 46 | /** |
| 47 | 47 | * @deprecated since sonata-project/admin-bundle 3.31. Pass a RequestStack to the constructor instead. |
| 48 | 48 | * |
| 49 | + * @param Request $request |
|
| 49 | 50 | * @return $this |
| 50 | 51 | */ |
| 51 | 52 | public function setRequest($request) |
@@ -56,6 +56,9 @@ |
||
| 56 | 56 | ); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | + /** |
|
| 60 | + * @return string |
|
| 61 | + */ |
|
| 59 | 62 | protected function getChoiceClass() |
| 60 | 63 | { |
| 61 | 64 | return ChoiceType::class; |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | /** |
| 183 | 183 | * render a view element. |
| 184 | 184 | * |
| 185 | - * @param object $object |
|
| 185 | + * @param \stdClass $object |
|
| 186 | 186 | * |
| 187 | 187 | * @return string |
| 188 | 188 | */ |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | /** |
| 320 | 320 | * Get the identifiers as a string that is safe to use in a url. |
| 321 | 321 | * |
| 322 | - * @param object $model |
|
| 322 | + * @param \stdClass $model |
|
| 323 | 323 | * |
| 324 | 324 | * @return string string representation of the id that is safe to use in a url |
| 325 | 325 | */ |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | } |
| 342 | 342 | |
| 343 | 343 | /** |
| 344 | - * @return string|bool |
|
| 344 | + * @return string|false |
|
| 345 | 345 | */ |
| 346 | 346 | public function getXEditableType($type) |
| 347 | 347 | { |