@@ -130,7 +130,7 @@ |
||
| 130 | 130 | * Write a message to the output. |
| 131 | 131 | * |
| 132 | 132 | * @param string $message |
| 133 | - * @param bool|true $newLine |
|
| 133 | + * @param boolean $newLine |
|
| 134 | 134 | */ |
| 135 | 135 | protected function log($message, $newLine = true): void |
| 136 | 136 | { |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | /** |
| 197 | - * @param mixed $media |
|
| 197 | + * @param MediaInterface $media |
|
| 198 | 198 | */ |
| 199 | 199 | private function getMedia($media): ?MediaInterface |
| 200 | 200 | { |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | /** |
| 62 | 62 | * NEXT_MAJOR: Remove `$templating` argument. |
| 63 | 63 | * |
| 64 | - * @param Environment|string $twigOrName |
|
| 64 | + * @param Environment $twigOrName |
|
| 65 | 65 | */ |
| 66 | 66 | public function __construct($twigOrName, ?EngineInterface $templating, ContainerInterface $container, ManagerInterface $galleryManager) |
| 67 | 67 | { |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | /** |
| 48 | 48 | * NEXT_MAJOR: Remove `$templating` argument. |
| 49 | 49 | * |
| 50 | - * @param Environment|string $twigOrName |
|
| 50 | + * @param Environment $twigOrName |
|
| 51 | 51 | */ |
| 52 | 52 | public function __construct($twigOrName, ?EngineInterface $templating, GalleryManagerInterface $galleryManager, Pool $pool) |
| 53 | 53 | { |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | /** |
| 60 | 60 | * NEXT_MAJOR: Remove `$templating` argument. |
| 61 | 61 | * |
| 62 | - * @param Environment|string $twigOrName |
|
| 62 | + * @param Environment $twigOrName |
|
| 63 | 63 | */ |
| 64 | 64 | public function __construct( |
| 65 | 65 | $twigOrName, |
@@ -30,10 +30,19 @@ |
||
| 30 | 30 | { |
| 31 | 31 | public function getTitle(): string; |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @return string|null |
|
| 35 | + */ |
|
| 33 | 36 | public function getDescription(): ?string; |
| 34 | 37 | |
| 38 | + /** |
|
| 39 | + * @return string |
|
| 40 | + */ |
|
| 35 | 41 | public function getImage(): ?string; |
| 36 | 42 | |
| 43 | + /** |
|
| 44 | + * @return string|null |
|
| 45 | + */ |
|
| 37 | 46 | public function getDomain(): ?string; |
| 38 | 47 | |
| 39 | 48 | /** |
@@ -42,6 +42,9 @@ |
||
| 42 | 42 | return parent::createAction(); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string|null $view |
|
| 47 | + */ |
|
| 45 | 48 | public function render($view, array $parameters = [], ?Response $response = null) |
| 46 | 49 | { |
| 47 | 50 | $parameters['media_pool'] = $this->get('sonata.media.pool'); |
@@ -19,9 +19,18 @@ |
||
| 19 | 19 | |
| 20 | 20 | public function setContext($context); |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param string $name |
|
| 24 | + */ |
|
| 22 | 25 | public function setName($name); |
| 23 | 26 | |
| 27 | + /** |
|
| 28 | + * @param boolean $enabled |
|
| 29 | + */ |
|
| 24 | 30 | public function setEnabled($enabled); |
| 25 | 31 | |
| 32 | + /** |
|
| 33 | + * @param integer $position |
|
| 34 | + */ |
|
| 26 | 35 | public function setPosition($position); |
| 27 | 36 | } |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | * |
| 152 | 152 | * @Rest\View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true) |
| 153 | 153 | * |
| 154 | - * @param $id |
|
| 154 | + * @param integer $id |
|
| 155 | 155 | * |
| 156 | 156 | * @return GalleryInterface |
| 157 | 157 | */ |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | * |
| 177 | 177 | * @Rest\View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true) |
| 178 | 178 | * |
| 179 | - * @param $id |
|
| 179 | + * @param integer $id |
|
| 180 | 180 | * |
| 181 | 181 | * @return MediaInterface[] |
| 182 | 182 | */ |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | * |
| 209 | 209 | * @Rest\View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true) |
| 210 | 210 | * |
| 211 | - * @param $id |
|
| 211 | + * @param integer $id |
|
| 212 | 212 | * |
| 213 | 213 | * @return GalleryItemInterface[] |
| 214 | 214 | */ |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | * |
| 331 | 331 | * @throws NotFoundHttpException |
| 332 | 332 | * |
| 333 | - * @return GalleryInterface |
|
| 333 | + * @return FormInterface |
|
| 334 | 334 | */ |
| 335 | 335 | public function putGalleryMediaGalleryItemAction($galleryId, $mediaId, Request $request) |
| 336 | 336 | { |
@@ -473,6 +473,7 @@ discard block |
||
| 473 | 473 | * |
| 474 | 474 | * @throws NotFoundHttpException |
| 475 | 475 | * |
| 476 | + * @param integer $id |
|
| 476 | 477 | * @return MediaInterface |
| 477 | 478 | */ |
| 478 | 479 | protected function getMedia($id) |