@@ -292,6 +292,10 @@ |
||
292 | 292 | $this->assertTrue($this->datagridMapper->has('baz')); |
293 | 293 | } |
294 | 294 | |
295 | + /** |
|
296 | + * @param string $name |
|
297 | + * @param string $label |
|
298 | + */ |
|
295 | 299 | private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription |
296 | 300 | { |
297 | 301 | $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class); |
@@ -286,6 +286,10 @@ |
||
286 | 286 | $this->assertTrue($this->listMapper->has('baz')); |
287 | 287 | } |
288 | 288 | |
289 | + /** |
|
290 | + * @param string $name |
|
291 | + * @param string $label |
|
292 | + */ |
|
289 | 293 | private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription |
290 | 294 | { |
291 | 295 | $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class); |
@@ -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); |
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); |
56 | 58 | } |
@@ -647,6 +647,9 @@ |
||
647 | 647 | $this->assertNull($this->pager->getQuery()); |
648 | 648 | } |
649 | 649 | |
650 | + /** |
|
651 | + * @param Pager $obj |
|
652 | + */ |
|
650 | 653 | protected function callMethod($obj, string $name, array $args = []) |
651 | 654 | { |
652 | 655 | $class = new \ReflectionClass($obj); |
@@ -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 |
@@ -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 | |
@@ -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 | } |
@@ -62,6 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | /** |
64 | 64 | * @param string $label |
65 | + * @return void |
|
65 | 66 | */ |
66 | 67 | public function setLabel($label); |
67 | 68 | |
@@ -72,7 +73,7 @@ discard block |
||
72 | 73 | |
73 | 74 | /** |
74 | 75 | * @param string $name |
75 | - * @param mixed|null $default |
|
76 | + * @param boolean $default |
|
76 | 77 | * |
77 | 78 | * @return mixed |
78 | 79 | */ |
@@ -80,12 +81,14 @@ discard block |
||
80 | 81 | |
81 | 82 | /** |
82 | 83 | * @param string $name |
83 | - * @param mixed $value |
|
84 | + * @param boolean $value |
|
85 | + * @return void |
|
84 | 86 | */ |
85 | 87 | public function setOption($name, $value); |
86 | 88 | |
87 | 89 | /** |
88 | 90 | * @param string $name |
91 | + * @return void |
|
89 | 92 | */ |
90 | 93 | public function initialize($name, array $options = []); |
91 | 94 | |
@@ -129,6 +132,7 @@ discard block |
||
129 | 132 | * |
130 | 133 | * @param string $name |
131 | 134 | * @param mixed $value |
135 | + * @return void |
|
132 | 136 | */ |
133 | 137 | public function setFieldOption($name, $value); |
134 | 138 | |
@@ -155,6 +159,7 @@ discard block |
||
155 | 159 | * Set the condition to use with the left side of the query : OR or AND. |
156 | 160 | * |
157 | 161 | * @param string $condition |
162 | + * @return void |
|
158 | 163 | */ |
159 | 164 | public function setCondition($condition); |
160 | 165 |
@@ -19,6 +19,9 @@ |
||
19 | 19 | { |
20 | 20 | protected $metadataClass; |
21 | 21 | |
22 | + /** |
|
23 | + * @param string $associationMapping |
|
24 | + */ |
|
22 | 25 | public function setParentAssociationMapping($associationMapping): void |
23 | 26 | { |
24 | 27 | $this->parentAssociationMapping = $associationMapping; |
@@ -44,6 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | /** |
46 | 46 | * @param ContainerInterface|Pool $adminPool |
47 | + * @param string $mosaicBackground |
|
47 | 48 | */ |
48 | 49 | public function __construct($adminPool, ?string $mosaicBackground = null) |
49 | 50 | { |
@@ -80,7 +81,7 @@ discard block |
||
80 | 81 | /** |
81 | 82 | * @param string $code |
82 | 83 | * @param string $action |
83 | - * @param array $parameters |
|
84 | + * @param string[] $parameters |
|
84 | 85 | * @param int $referenceType |
85 | 86 | * |
86 | 87 | * @return string |
@@ -95,8 +96,8 @@ discard block |
||
95 | 96 | /** |
96 | 97 | * @param string $code |
97 | 98 | * @param string $action |
98 | - * @param object $object |
|
99 | - * @param array $parameters |
|
99 | + * @param string $object |
|
100 | + * @param string[] $parameters |
|
100 | 101 | * @param int $referenceType |
101 | 102 | * |
102 | 103 | * @return string |