Completed
Push — master ( 1a3b07...20b6cc )
by Vincent
02:38
created
src/Datagrid/ListMapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     }
53 53
 
54 54
     /**
55
-     * @param FieldDescriptionInterface|string $name
55
+     * @param \Sonata\AdminBundle\Admin\BaseFieldDescription $name
56 56
      * @param array<string, mixed>             $fieldDescriptionOptions
57 57
      */
58 58
     public function addIdentifier($name, ?string $type = null, array $fieldDescriptionOptions = []): self
Please login to merge, or discard this patch.
src/Datagrid/Pager.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,6 +132,7 @@  discard block
 block discarded – undo
132 132
     /**
133 133
      * Returns an array of page numbers to use in pagination links.
134 134
      *
135
+     * @param integer $nbLinks
135 136
      * @return int[]
136 137
      */
137 138
     public function getLinks(?int $nbLinks = null): array
@@ -380,7 +381,7 @@  discard block
 block discarded – undo
380 381
     /**
381 382
      * Returns a parameter.
382 383
      *
383
-     * @param mixed $default
384
+     * @param null|string $default
384 385
      *
385 386
      * @return mixed
386 387
      */
@@ -400,7 +401,7 @@  discard block
 block discarded – undo
400 401
     /**
401 402
      * Sets a parameter.
402 403
      *
403
-     * @param mixed $value
404
+     * @param string $value
404 405
      */
405 406
     public function setParameter(string $name, $value): void
406 407
     {
Please login to merge, or discard this patch.
src/Filter/Persister/FilterPersisterInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -41,11 +41,13 @@
 block discarded – undo
41 41
      *     "_per_page" => {int count rows per page}.
42 42
      *
43 43
      * @param array<string, int|string|array{type: int, value: mixed}> $filters
44
+     * @return void
44 45
      */
45 46
     public function set(string $adminCode, array $filters): void;
46 47
 
47 48
     /**
48 49
      * Reset persisted filters for given admin.
50
+     * @return void
49 51
      */
50 52
     public function reset(string $adminCode): void;
51 53
 }
Please login to merge, or discard this patch.
src/Filter/FilterInterface.php 1 patch
Doc Comments   +12 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function getLabel(): ?string;
45 45
 
46
+    /**
47
+     * @return void
48
+     */
46 49
     public function setLabel(string $label): void;
47 50
 
48 51
     /**
@@ -51,19 +54,21 @@  discard block
 block discarded – undo
51 54
     public function getDefaultOptions(): array;
52 55
 
53 56
     /**
54
-     * @param mixed $default
57
+     * @param boolean $default
55 58
      *
56 59
      * @return mixed
57 60
      */
58 61
     public function getOption(string $name, $default = null);
59 62
 
60 63
     /**
61
-     * @param mixed $value
64
+     * @param boolean $value
65
+     * @return void
62 66
      */
63 67
     public function setOption(string $name, $value): void;
64 68
 
65 69
     /**
66 70
      * @param array<string, mixed> $options
71
+     * @return void
67 72
      */
68 73
     public function initialize(string $name, array $options = []): void;
69 74
 
@@ -105,6 +110,7 @@  discard block
 block discarded – undo
105 110
 
106 111
     /**
107 112
      * @param mixed $value
113
+     * @return void
108 114
      */
109 115
     public function setFieldOption(string $name, $value): void;
110 116
 
@@ -124,9 +130,13 @@  discard block
 block discarded – undo
124 130
 
125 131
     /**
126 132
      * Set the condition to use with the left side of the query : OR or AND.
133
+     * @return void
127 134
      */
128 135
     public function setCondition(string $condition): void;
129 136
 
137
+    /**
138
+     * @return string|null
139
+     */
130 140
     public function getCondition(): ?string;
131 141
 
132 142
     public function getTranslationDomain(): ?string;
Please login to merge, or discard this patch.
src/Datagrid/DatagridInterface.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -32,8 +32,14 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function getResults(): array;
34 34
 
35
+    /**
36
+     * @return void
37
+     */
35 38
     public function buildPager(): void;
36 39
 
40
+    /**
41
+     * @return void
42
+     */
37 43
     public function addFilter(FilterInterface $filter): void;
38 44
 
39 45
     /**
@@ -45,6 +51,7 @@  discard block
 block discarded – undo
45 51
      * Reorder filters.
46 52
      *
47 53
      * @param string[] $keys
54
+     * @return void
48 55
      */
49 56
     public function reorderFilters(array $keys): void;
50 57
 
@@ -57,6 +64,7 @@  discard block
 block discarded – undo
57 64
 
58 65
     /**
59 66
      * @param mixed $value
67
+     * @return void
60 68
      */
61 69
     public function setValue(string $name, ?string $operator, $value): void;
62 70
 
@@ -66,6 +74,9 @@  discard block
 block discarded – undo
66 74
 
67 75
     public function hasFilter(string $name): bool;
68 76
 
77
+    /**
78
+     * @return void
79
+     */
69 80
     public function removeFilter(string $name): void;
70 81
 
71 82
     public function hasActiveFilters(): bool;
Please login to merge, or discard this patch.
src/Admin/AdminInterface.php 1 patch
Doc Comments   +131 added lines patch added patch discarded remove patch
@@ -40,24 +40,54 @@  discard block
 block discarded – undo
40 40
  */
41 41
 interface AdminInterface extends AccessRegistryInterface, FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface, ParentAdminInterface, UrlGeneratorInterface
42 42
 {
43
+    /**
44
+     * @return void
45
+     */
43 46
     public function setMenuFactory(FactoryInterface $menuFactory): void;
44 47
 
48
+    /**
49
+     * @return FactoryInterface
50
+     */
45 51
     public function getMenuFactory(): ?FactoryInterface;
46 52
 
53
+    /**
54
+     * @return void
55
+     */
47 56
     public function setFormContractor(FormContractorInterface $formContractor): void;
48 57
 
58
+    /**
59
+     * @return void
60
+     */
49 61
     public function setListBuilder(ListBuilderInterface $listBuilder): void;
50 62
 
63
+    /**
64
+     * @return ListBuilderInterface
65
+     */
51 66
     public function getListBuilder(): ?ListBuilderInterface;
52 67
 
68
+    /**
69
+     * @return void
70
+     */
53 71
     public function setDatagridBuilder(DatagridBuilderInterface $datagridBuilder): void;
54 72
 
73
+    /**
74
+     * @return DatagridBuilderInterface
75
+     */
55 76
     public function getDatagridBuilder(): ?DatagridBuilderInterface;
56 77
 
78
+    /**
79
+     * @return void
80
+     */
57 81
     public function setTranslator(TranslatorInterface $translator): void;
58 82
 
83
+    /**
84
+     * @return void
85
+     */
59 86
     public function setRequest(Request $request): void;
60 87
 
88
+    /**
89
+     * @return void
90
+     */
61 91
     public function setConfigurationPool(Pool $pool): void;
62 92
 
63 93
     /**
@@ -68,12 +98,16 @@  discard block
 block discarded – undo
68 98
      */
69 99
     public function getClass(): string;
70 100
 
101
+    /**
102
+     * @return void
103
+     */
71 104
     public function attachAdminClass(FieldDescriptionInterface $fieldDescription): void;
72 105
 
73 106
     public function getDatagrid(): DatagridInterface;
74 107
 
75 108
     /**
76 109
      * Set base controller name.
110
+     * @return void
77 111
      */
78 112
     public function setBaseControllerName(string $baseControllerName): void;
79 113
 
@@ -84,14 +118,19 @@  discard block
 block discarded – undo
84 118
 
85 119
     /**
86 120
      * Sets a list of templates.
121
+     * @return void
87 122
      */
88 123
     public function setTemplates(array $templates): void;
89 124
 
90 125
     /**
91 126
      * Sets a specific template.
127
+     * @return void
92 128
      */
93 129
     public function setTemplate(string $name, string $template): void;
94 130
 
131
+    /**
132
+     * @return ModelManagerInterface
133
+     */
95 134
     public function getModelManager(): ?ModelManagerInterface;
96 135
 
97 136
     /**
@@ -108,6 +147,7 @@  discard block
 block discarded – undo
108 147
 
109 148
     /**
110 149
      * Returns a form depend on the given $object.
150
+     * @return FormInterface|null
111 151
      */
112 152
     public function getForm(): ?FormInterface;
113 153
 
@@ -133,6 +173,9 @@  discard block
 block discarded – undo
133 173
      */
134 174
     public function getSecurityInformation(): array;
135 175
 
176
+    /**
177
+     * @return void
178
+     */
136 179
     public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription): void;
137 180
 
138 181
     /**
@@ -157,8 +200,14 @@  discard block
 block discarded – undo
157 200
      */
158 201
     public function hasRoute(string $name): bool;
159 202
 
203
+    /**
204
+     * @return void
205
+     */
160 206
     public function setSecurityHandler(SecurityHandlerInterface $securityHandler): void;
161 207
 
208
+    /**
209
+     * @return SecurityHandlerInterface
210
+     */
162 211
     public function getSecurityHandler(): ?SecurityHandlerInterface;
163 212
 
164 213
     /**
@@ -177,17 +226,33 @@  discard block
 block discarded – undo
177 226
      * Shorthand method for templating.
178 227
      *
179 228
      * @param object $model
229
+     * @return string
180 230
      */
181 231
     public function id($model): ?string;
182 232
 
233
+    /**
234
+     * @return void
235
+     */
183 236
     public function setValidator(ValidatorInterface $validator): void;
184 237
 
238
+    /**
239
+     * @return ValidatorInterface
240
+     */
185 241
     public function getValidator(): ?ValidatorInterface;
186 242
 
243
+    /**
244
+     * @return FieldDescriptionCollection|null
245
+     */
187 246
     public function getShow(): ?FieldDescriptionCollection;
188 247
 
248
+    /**
249
+     * @return void
250
+     */
189 251
     public function setFormTheme(array $formTheme): void;
190 252
 
253
+    /**
254
+     * @return FieldDescriptionCollection|null
255
+     */
191 256
     public function getList(): ?FieldDescriptionCollection;
192 257
 
193 258
     /**
@@ -195,6 +260,9 @@  discard block
 block discarded – undo
195 260
      */
196 261
     public function getFormTheme(): array;
197 262
 
263
+    /**
264
+     * @return void
265
+     */
198 266
     public function setFilterTheme(array $filterTheme): void;
199 267
 
200 268
     /**
@@ -202,6 +270,9 @@  discard block
 block discarded – undo
202 270
      */
203 271
     public function getFilterTheme(): array;
204 272
 
273
+    /**
274
+     * @return void
275
+     */
205 276
     public function addExtension(AdminExtensionInterface $extension): void;
206 277
 
207 278
     /**
@@ -211,8 +282,14 @@  discard block
 block discarded – undo
211 282
      */
212 283
     public function getExtensions(): array;
213 284
 
285
+    /**
286
+     * @return void
287
+     */
214 288
     public function setRouteBuilder(RouteBuilderInterface $routeBuilder): void;
215 289
 
290
+    /**
291
+     * @return RouteBuilderInterface
292
+     */
216 293
     public function getRouteBuilder(): ?RouteBuilderInterface;
217 294
 
218 295
     /**
@@ -220,8 +297,14 @@  discard block
 block discarded – undo
220 297
      */
221 298
     public function toString($object): string;
222 299
 
300
+    /**
301
+     * @return void
302
+     */
223 303
     public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy): void;
224 304
 
305
+    /**
306
+     * @return LabelTranslatorStrategyInterface
307
+     */
225 308
     public function getLabelTranslatorStrategy(): ?LabelTranslatorStrategyInterface;
226 309
 
227 310
     /**
@@ -233,6 +316,9 @@  discard block
 block discarded – undo
233 316
 
234 317
     public function getNewInstance(): object;
235 318
 
319
+    /**
320
+     * @return void
321
+     */
236 322
     public function setUniqid(string $uniqId): void;
237 323
 
238 324
     /**
@@ -252,6 +338,9 @@  discard block
 block discarded – undo
252 338
      */
253 339
     public function getObject($id): ?object;
254 340
 
341
+    /**
342
+     * @return void
343
+     */
255 344
     public function setSubject(?object $subject): void;
256 345
 
257 346
     public function getSubject(): object;
@@ -275,6 +364,7 @@  discard block
 block discarded – undo
275 364
 
276 365
     /**
277 366
      * Call before the batch action, allow you to alter the query and the idx.
367
+     * @return void
278 368
      */
279 369
     public function preBatchAction(string $actionName, ProxyQueryInterface $query, array &$idx, bool $allElements = false): void;
280 370
 
@@ -297,6 +387,7 @@  discard block
 block discarded – undo
297 387
      *
298 388
      * @deprecated this feature cannot be stable, use a custom validator,
299 389
      *             the feature will be removed with Symfony 2.2
390
+     * @return void
300 391
      */
301 392
     public function validate(ErrorElement $errorElement, $object): void;
302 393
 
@@ -304,11 +395,15 @@  discard block
 block discarded – undo
304 395
 
305 396
     /**
306 397
      * Add object security, fe. make the current user owner of the object.
398
+     * @return void
307 399
      */
308 400
     public function createObjectSecurity(object $object): void;
309 401
 
310 402
     public function getParent(): self;
311 403
 
404
+    /**
405
+     * @return void
406
+     */
312 407
     public function setParent(self $admin): void;
313 408
 
314 409
     /**
@@ -320,6 +415,7 @@  discard block
 block discarded – undo
320 415
      * Set the translation domain.
321 416
      *
322 417
      * @param string $translationDomain the translation domain
418
+     * @return void
323 419
      */
324 420
     public function setTranslationDomain(string $translationDomain): void;
325 421
 
@@ -339,6 +435,7 @@  discard block
 block discarded – undo
339 435
 
340 436
     /**
341 437
      * Set the form groups.
438
+     * @return void
342 439
      */
343 440
     public function setFormGroups(array $formGroups): void;
344 441
 
@@ -347,6 +444,9 @@  discard block
 block discarded – undo
347 444
      */
348 445
     public function getFormTabs(): array;
349 446
 
447
+    /**
448
+     * @return void
449
+     */
350 450
     public function setFormTabs(array $formTabs): void;
351 451
 
352 452
     /**
@@ -354,10 +454,14 @@  discard block
 block discarded – undo
354 454
      */
355 455
     public function getShowTabs(): array;
356 456
 
457
+    /**
458
+     * @return void
459
+     */
357 460
     public function setShowTabs(array $showTabs): void;
358 461
 
359 462
     /**
360 463
      * Remove a form group field.
464
+     * @return void
361 465
      */
362 466
     public function removeFieldFromFormGroup(string $key): void;
363 467
 
@@ -370,11 +474,13 @@  discard block
 block discarded – undo
370 474
 
371 475
     /**
372 476
      * Set the show groups.
477
+     * @return void
373 478
      */
374 479
     public function setShowGroups(array $showGroups): void;
375 480
 
376 481
     /**
377 482
      * Reorder items in showGroup.
483
+     * @return void
378 484
      */
379 485
     public function reorderShowGroup(string $group, array $keys): void;
380 486
 
@@ -390,6 +496,7 @@  discard block
 block discarded – undo
390 496
 
391 497
     /**
392 498
      * Sets the list of supported sub classes.
499
+     * @return void
393 500
      */
394 501
     public function setSubClasses(array $subClasses): void;
395 502
 
@@ -428,6 +535,7 @@  discard block
 block discarded – undo
428 535
 
429 536
     /**
430 537
      * Returns Admin`s label.
538
+     * @return string
431 539
      */
432 540
     public function getLabel(): ?string;
433 541
 
@@ -442,6 +550,7 @@  discard block
 block discarded – undo
442 550
 
443 551
     /**
444 552
      * Set the current child status.
553
+     * @return void
445 554
      */
446 555
     public function setCurrentChild(bool $currentChild): void;
447 556
 
@@ -465,6 +574,9 @@  discard block
 block discarded – undo
465 574
      */
466 575
     public function getListModes(): array;
467 576
 
577
+    /**
578
+     * @return void
579
+     */
468 580
     public function setListMode(string $mode): void;
469 581
 
470 582
     /**
@@ -489,12 +601,14 @@  discard block
 block discarded – undo
489 601
 
490 602
     /**
491 603
      * Returns the result link for an object.
604
+     * @return string|null
492 605
      */
493 606
     public function getSearchResultLink(object $object): ?string;
494 607
 
495 608
     /**
496 609
      * Setting to true will enable mosaic button for the admin screen.
497 610
      * Setting to false will hide mosaic button for the admin screen.
611
+     * @return void
498 612
      */
499 613
     public function showMosaicButton(bool $isShown): void;
500 614
 
@@ -515,6 +629,9 @@  discard block
 block discarded – undo
515 629
      */
516 630
     public function getRootCode(): string;
517 631
 
632
+    /**
633
+     * @return void
634
+     */
518 635
     public function setFilterPersister(?FilterPersisterInterface $filterPersister = null): void;
519 636
 
520 637
     /**
@@ -527,14 +644,24 @@  discard block
 block discarded – undo
527 644
      */
528 645
     public function getBaseRouteName(): string;
529 646
 
647
+    /**
648
+     * @param AbstractAdmin $childAdmin
649
+     */
530 650
     public function getSideMenu(string $action, ?self $childAdmin = null): ItemInterface;
531 651
 
652
+    /**
653
+     * @return void
654
+     */
532 655
     public function addParentAssociationMapping(string $code, string $value): void;
533 656
 
657
+    /**
658
+     * @return RouteGeneratorInterface|null
659
+     */
534 660
     public function getRouteGenerator(): ?RouteGeneratorInterface;
535 661
 
536 662
     /**
537 663
      * Returns the current child admin instance.
664
+     * @return AdminInterface|null
538 665
      */
539 666
     public function getCurrentChildAdmin(): ?self;
540 667
 
@@ -544,11 +671,15 @@  discard block
 block discarded – undo
544 671
      */
545 672
     public function getParentAssociationMapping(): ?string;
546 673
 
674
+    /**
675
+     * @return void
676
+     */
547 677
     public function reorderFormGroup(string $group, array $keys): void;
548 678
 
549 679
     /**
550 680
      * This method is being called by the main admin class and the child class,
551 681
      * the getFormBuilder is only call by the main admin class.
682
+     * @return void
552 683
      */
553 684
     public function defineFormBuilder(FormBuilderInterface $formBuilder): void;
554 685
 }
Please login to merge, or discard this patch.