@@ -68,6 +68,9 @@  | 
                                                    ||
| 68 | 68 | */  | 
                                                        
| 69 | 69 | private $modelManager;  | 
                                                        
| 70 | 70 | |
| 71 | + /**  | 
                                                        |
| 72 | + * @param string $projectDirectory  | 
                                                        |
| 73 | + */  | 
                                                        |
| 71 | 74 | public function __construct($projectDirectory, array $modelManagers = [])  | 
                                                        
| 72 | 75 |      { | 
                                                        
| 73 | 76 | $this->projectDirectory = $projectDirectory;  | 
                                                        
@@ -20,10 +20,19 @@  | 
                                                    ||
| 20 | 20 |  { | 
                                                        
| 21 | 21 | public function getTitle(): string;  | 
                                                        
| 22 | 22 | |
| 23 | + /**  | 
                                                        |
| 24 | + * @return string|null  | 
                                                        |
| 25 | + */  | 
                                                        |
| 23 | 26 | public function getDescription(): ?string;  | 
                                                        
| 24 | 27 | |
| 28 | + /**  | 
                                                        |
| 29 | + * @return string|null  | 
                                                        |
| 30 | + */  | 
                                                        |
| 25 | 31 | public function getImage(): ?string;  | 
                                                        
| 26 | 32 | |
| 33 | + /**  | 
                                                        |
| 34 | + * @return string|null  | 
                                                        |
| 35 | + */  | 
                                                        |
| 27 | 36 | public function getDomain(): ?string;  | 
                                                        
| 28 | 37 | |
| 29 | 38 | /**  | 
                                                        
@@ -212,6 +212,10 @@  | 
                                                    ||
| 212 | 212 | return new FormMapper($contractor->reveal(), $formBuilder, $this->admin->reveal());  | 
                                                        
| 213 | 213 | }  | 
                                                        
| 214 | 214 | |
| 215 | + /**  | 
                                                        |
| 216 | + * @param string $uniqid  | 
                                                        |
| 217 | + * @param Request $request  | 
                                                        |
| 218 | + */  | 
                                                        |
| 215 | 219 | private function configureAdmin(  | 
                                                        
| 216 | 220 | ?string $uniqid = null,  | 
                                                        
| 217 | 221 | ?Request $request = null,  | 
                                                        
@@ -3986,6 +3986,9 @@  | 
                                                    ||
| 3986 | 3986 | ]);  | 
                                                        
| 3987 | 3987 | }  | 
                                                        
| 3988 | 3988 | |
| 3989 | + /**  | 
                                                        |
| 3990 | + * @param string $domain  | 
                                                        |
| 3991 | + */  | 
                                                        |
| 3989 | 3992 | private function expectTranslate(  | 
                                                        
| 3990 | 3993 | string $id,  | 
                                                        
| 3991 | 3994 | array $parameters = [],  | 
                                                        
@@ -47,6 +47,8 @@  | 
                                                    ||
| 47 | 47 | |
| 48 | 48 | /**  | 
                                                        
| 49 | 49 | * @param array<string, mixed> $options  | 
                                                        
| 50 | + * @param string $description  | 
                                                        |
| 51 | + * @param string $domain  | 
                                                        |
| 50 | 52 | */  | 
                                                        
| 51 | 53 | public function __construct(  | 
                                                        
| 52 | 54 | string $title,  | 
                                                        
@@ -2486,6 +2486,9 @@  | 
                                                    ||
| 2486 | 2486 | return htmlspecialchars(http_build_query($url, '', '&', PHP_QUERY_RFC3986));  | 
                                                        
| 2487 | 2487 | }  | 
                                                        
| 2488 | 2488 | |
| 2489 | + /**  | 
                                                        |
| 2490 | + * @param string $privateMethod  | 
                                                        |
| 2491 | + */  | 
                                                        |
| 2489 | 2492 | private function getMethodAsPublic($privateMethod): \ReflectionMethod  | 
                                                        
| 2490 | 2493 |      { | 
                                                        
| 2491 | 2494 |          $reflection = new \ReflectionMethod('Sonata\AdminBundle\Twig\Extension\SonataAdminExtension', $privateMethod); | 
                                                        
@@ -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);  | 
                                                        
@@ -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);  |