@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Doctrine\Common\Util\ClassUtils; |
| 15 | 15 | use Knp\Menu\FactoryInterface as MenuFactoryInterface; |
| 16 | -use Knp\Menu\ItemInterface; |
|
| 17 | 16 | use Knp\Menu\ItemInterface as MenuItemInterface; |
| 18 | 17 | use Sonata\AdminBundle\Builder\DatagridBuilderInterface; |
| 19 | 18 | use Sonata\AdminBundle\Builder\FormContractorInterface; |
@@ -936,6 +936,7 @@ discard block |
||
| 936 | 936 | |
| 937 | 937 | /** |
| 938 | 938 | * NEXT_MAJOR: remove this method. |
| 939 | + * @param string $subClass |
|
| 939 | 940 | */ |
| 940 | 941 | public function addSubClass($subClass): void |
| 941 | 942 | { |
@@ -1064,6 +1065,9 @@ discard block |
||
| 1064 | 1065 | return $this->routeGenerator->hasAdminRoute($this, $name); |
| 1065 | 1066 | } |
| 1066 | 1067 | |
| 1068 | + /** |
|
| 1069 | + * @param string $adminCode |
|
| 1070 | + */ |
|
| 1067 | 1071 | public function isCurrentRoute(string $name, ?string $adminCode = null): bool |
| 1068 | 1072 | { |
| 1069 | 1073 | if (!$this->hasRequest()) { |
@@ -1309,6 +1313,9 @@ discard block |
||
| 1309 | 1313 | return $this->baseControllerName; |
| 1310 | 1314 | } |
| 1311 | 1315 | |
| 1316 | + /** |
|
| 1317 | + * @param string $label |
|
| 1318 | + */ |
|
| 1312 | 1319 | public function setLabel(?string $label): void |
| 1313 | 1320 | { |
| 1314 | 1321 | $this->label = $label; |
@@ -1809,6 +1816,7 @@ discard block |
||
| 1809 | 1816 | * |
| 1810 | 1817 | * NEXT_MAJOR: remove this method |
| 1811 | 1818 | * |
| 1819 | + * @param string $domain |
|
| 1812 | 1820 | * @return string the translated string |
| 1813 | 1821 | * |
| 1814 | 1822 | * @deprecated since sonata-project/admin-bundle 3.9, to be removed with 4.0 |
@@ -1989,6 +1997,9 @@ discard block |
||
| 1989 | 1997 | return $this->managerType; |
| 1990 | 1998 | } |
| 1991 | 1999 | |
| 2000 | + /** |
|
| 2001 | + * @param string $type |
|
| 2002 | + */ |
|
| 1992 | 2003 | public function setManagerType(?string $type): void |
| 1993 | 2004 | { |
| 1994 | 2005 | $this->managerType = $type; |
@@ -2399,6 +2410,7 @@ discard block |
||
| 2399 | 2410 | |
| 2400 | 2411 | /** |
| 2401 | 2412 | * {@inheritdoc} |
| 2413 | + * @param boolean $isShown |
|
| 2402 | 2414 | */ |
| 2403 | 2415 | final public function showMosaicButton($isShown): void |
| 2404 | 2416 | { |
@@ -2528,6 +2540,7 @@ discard block |
||
| 2528 | 2540 | * NEXT_MAJOR: remove this method. |
| 2529 | 2541 | * |
| 2530 | 2542 | * @deprecated Use configureTabMenu instead |
| 2543 | + * @param string $action |
|
| 2531 | 2544 | */ |
| 2532 | 2545 | protected function configureSideMenu(MenuItemInterface $menu, $action, AdminInterface $childAdmin = null): void |
| 2533 | 2546 | { |
@@ -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 | /** |
@@ -19,6 +19,9 @@ |
||
| 19 | 19 | { |
| 20 | 20 | protected $metadataClass = null; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param string $associationMapping |
|
| 24 | + */ |
|
| 22 | 25 | public function setParentAssociationMapping($associationMapping): void |
| 23 | 26 | { |
| 24 | 27 | $this->parentAssociationMapping = $associationMapping; |
@@ -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); |
@@ -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); |