@@ -24,7 +24,7 @@ |
||
| 24 | 24 | { |
| 25 | 25 | /** |
| 26 | 26 | * @param string $questionText |
| 27 | - * @param mixed $default |
|
| 27 | + * @param string $default |
|
| 28 | 28 | * @param callable $validator |
| 29 | 29 | * |
| 30 | 30 | * @return mixed |
@@ -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 | { |
@@ -743,8 +743,8 @@ |
||
| 743 | 743 | /** |
| 744 | 744 | * Compare history revisions of object. |
| 745 | 745 | * |
| 746 | - * @param int|string|null $baseRevision |
|
| 747 | - * @param int|string|null $compareRevision |
|
| 746 | + * @param null|integer $baseRevision |
|
| 747 | + * @param null|integer $compareRevision |
|
| 748 | 748 | * |
| 749 | 749 | * @throws AccessDeniedException If access is not granted |
| 750 | 750 | * @throws NotFoundHttpException If the object or revision does not exist or the audit reader is not available |
@@ -945,6 +945,7 @@ discard block |
||
| 945 | 945 | |
| 946 | 946 | /** |
| 947 | 947 | * NEXT_MAJOR: remove this method. |
| 948 | + * @param string $subClass |
|
| 948 | 949 | */ |
| 949 | 950 | public function addSubClass($subClass): void |
| 950 | 951 | { |
@@ -1073,6 +1074,9 @@ discard block |
||
| 1073 | 1074 | return $this->routeGenerator->hasAdminRoute($this, $name); |
| 1074 | 1075 | } |
| 1075 | 1076 | |
| 1077 | + /** |
|
| 1078 | + * @param string $adminCode |
|
| 1079 | + */ |
|
| 1076 | 1080 | public function isCurrentRoute(string $name, ?string $adminCode = null): bool |
| 1077 | 1081 | { |
| 1078 | 1082 | if (!$this->hasRequest()) { |
@@ -1320,6 +1324,9 @@ discard block |
||
| 1320 | 1324 | return $this->baseControllerName; |
| 1321 | 1325 | } |
| 1322 | 1326 | |
| 1327 | + /** |
|
| 1328 | + * @param string $label |
|
| 1329 | + */ |
|
| 1323 | 1330 | public function setLabel(?string $label): void |
| 1324 | 1331 | { |
| 1325 | 1332 | $this->label = $label; |
@@ -2030,6 +2037,9 @@ discard block |
||
| 2030 | 2037 | return $this->managerType; |
| 2031 | 2038 | } |
| 2032 | 2039 | |
| 2040 | + /** |
|
| 2041 | + * @param string $type |
|
| 2042 | + */ |
|
| 2033 | 2043 | public function setManagerType(?string $type): void |
| 2034 | 2044 | { |
| 2035 | 2045 | $this->managerType = $type; |
@@ -2440,6 +2450,7 @@ discard block |
||
| 2440 | 2450 | |
| 2441 | 2451 | /** |
| 2442 | 2452 | * {@inheritdoc} |
| 2453 | + * @param boolean $isShown |
|
| 2443 | 2454 | */ |
| 2444 | 2455 | final public function showMosaicButton($isShown): void |
| 2445 | 2456 | { |
@@ -2574,6 +2585,7 @@ discard block |
||
| 2574 | 2585 | * NEXT_MAJOR: remove this method. |
| 2575 | 2586 | * |
| 2576 | 2587 | * @deprecated Use configureTabMenu instead |
| 2588 | + * @param string $action |
|
| 2577 | 2589 | */ |
| 2578 | 2590 | protected function configureSideMenu(MenuItemInterface $menu, $action, AdminInterface $childAdmin = null): void |
| 2579 | 2591 | { |
@@ -212,6 +212,9 @@ |
||
| 212 | 212 | return new FormMapper($contractor->reveal(), $formBuilder, $this->admin->reveal()); |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | + /** |
|
| 216 | + * @param string $uniqid |
|
| 217 | + */ |
|
| 215 | 218 | private function configureAdmin( |
| 216 | 219 | ?string $uniqid = null, |
| 217 | 220 | ?Request $request = null, |
@@ -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,6 +83,7 @@ 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 | |
@@ -156,7 +160,7 @@ discard block |
||
| 156 | 160 | * |
| 157 | 161 | * @param string $class |
| 158 | 162 | * |
| 159 | - * @return object |
|
| 163 | + * @return \Sonata\AdminBundle\Tests\App\Model\Foo |
|
| 160 | 164 | */ |
| 161 | 165 | public function getModelInstance($class); |
| 162 | 166 | |
@@ -172,6 +176,7 @@ discard block |
||
| 172 | 176 | * |
| 173 | 177 | * @param array $collection |
| 174 | 178 | * @param object $element |
| 179 | + * @return void |
|
| 175 | 180 | */ |
| 176 | 181 | public function collectionRemoveElement(&$collection, &$element); |
| 177 | 182 | |
@@ -180,6 +185,7 @@ discard block |
||
| 180 | 185 | * |
| 181 | 186 | * @param array $collection |
| 182 | 187 | * @param object $element |
| 188 | + * @return void |
|
| 183 | 189 | */ |
| 184 | 190 | public function collectionAddElement(&$collection, &$element); |
| 185 | 191 | |
@@ -197,6 +203,7 @@ discard block |
||
| 197 | 203 | * Clear the collection. |
| 198 | 204 | * |
| 199 | 205 | * @param array $collection |
| 206 | + * @return void |
|
| 200 | 207 | */ |
| 201 | 208 | public function collectionClear(&$collection); |
| 202 | 209 | |
@@ -229,6 +236,7 @@ discard block |
||
| 229 | 236 | |
| 230 | 237 | /** |
| 231 | 238 | * @param mixed $query |
| 239 | + * @return void |
|
| 232 | 240 | */ |
| 233 | 241 | public function executeQuery($query); |
| 234 | 242 | |
@@ -236,7 +244,7 @@ discard block |
||
| 236 | 244 | * @param int|null $firstResult |
| 237 | 245 | * @param int|null $maxResult |
| 238 | 246 | * |
| 239 | - * @return SourceIteratorInterface |
|
| 247 | + * @return SourceIteratorInterface|null |
|
| 240 | 248 | */ |
| 241 | 249 | public function getDataSourceIterator( |
| 242 | 250 | DatagridInterface $datagrid, |
@@ -261,6 +269,7 @@ discard block |
||
| 261 | 269 | |
| 262 | 270 | /** |
| 263 | 271 | * @param string $class |
| 272 | + * @return void |
|
| 264 | 273 | */ |
| 265 | 274 | public function addIdentifiersToQuery($class, ProxyQueryInterface $query, array $idx); |
| 266 | 275 | } |