@@ -943,6 +943,7 @@ discard block |
||
943 | 943 | |
944 | 944 | /** |
945 | 945 | * NEXT_MAJOR: remove this method. |
946 | + * @param string $subClass |
|
946 | 947 | */ |
947 | 948 | public function addSubClass($subClass): void |
948 | 949 | { |
@@ -1098,6 +1099,9 @@ discard block |
||
1098 | 1099 | return $this->routeGenerator->hasAdminRoute($this, $name); |
1099 | 1100 | } |
1100 | 1101 | |
1102 | + /** |
|
1103 | + * @param string $adminCode |
|
1104 | + */ |
|
1101 | 1105 | public function isCurrentRoute(string $name, ?string $adminCode = null): bool |
1102 | 1106 | { |
1103 | 1107 | if (!$this->hasRequest()) { |
@@ -2099,7 +2103,7 @@ discard block |
||
2099 | 2103 | * |
2100 | 2104 | * @param string $context |
2101 | 2105 | * |
2102 | - * @return array |
|
2106 | + * @return string |
|
2103 | 2107 | */ |
2104 | 2108 | public function getPermissionsShow(string $context): array |
2105 | 2109 | { |
@@ -2495,6 +2499,7 @@ discard block |
||
2495 | 2499 | |
2496 | 2500 | /** |
2497 | 2501 | * {@inheritdoc} |
2502 | + * @param boolean $isShown |
|
2498 | 2503 | */ |
2499 | 2504 | final public function showMosaicButton($isShown): void |
2500 | 2505 | { |
@@ -2631,6 +2636,7 @@ discard block |
||
2631 | 2636 | * NEXT_MAJOR: remove this method. |
2632 | 2637 | * |
2633 | 2638 | * @deprecated Use configureTabMenu instead |
2639 | + * @param string $action |
|
2634 | 2640 | */ |
2635 | 2641 | protected function configureSideMenu(MenuItemInterface $menu, $action, AdminInterface $childAdmin = null): void |
2636 | 2642 | { |
@@ -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 $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 $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 $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(string $class, $id): ?object; |
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(string $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(array $parentAssociationMapping, string $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(array &$collection, object &$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(array &$collection, object &$element); |
185 | 192 | |
@@ -197,6 +204,7 @@ discard block |
||
197 | 204 | * Clear the collection. |
198 | 205 | * |
199 | 206 | * @param array $collection |
207 | + * @return void |
|
200 | 208 | */ |
201 | 209 | public function collectionClear(array &$collection); |
202 | 210 | |
@@ -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(string $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(string $class, object $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(string $class, ProxyQueryInterface $query, array $idx); |
264 | 276 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | interface SecurityHandlerInterface |
22 | 22 | { |
23 | 23 | /** |
24 | - * @param string|array $attributes |
|
24 | + * @param string $attributes |
|
25 | 25 | * @param mixed|null $object |
26 | 26 | * |
27 | 27 | * @return bool |
@@ -44,6 +44,7 @@ discard block |
||
44 | 44 | * Create object security, fe. make the current user owner of the object. |
45 | 45 | * |
46 | 46 | * @param object $object |
47 | + * @return void |
|
47 | 48 | */ |
48 | 49 | public function createObjectSecurity(AdminInterface $admin, object $object); |
49 | 50 | |
@@ -51,6 +52,7 @@ discard block |
||
51 | 52 | * Remove object security. |
52 | 53 | * |
53 | 54 | * @param object $object |
55 | + * @return void |
|
54 | 56 | */ |
55 | 57 | public function deleteObjectSecurity(AdminInterface $admin, object $object); |
56 | 58 | } |