@@ -5,9 +5,6 @@ |
||
5 | 5 | use Sonata\AdminBundle\Form\FormMapper; |
6 | 6 | use Sonata\AdminBundle\Form\Type\ModelListType; |
7 | 7 | use Sonata\MediaBundle\Admin\GalleryHasMediaAdmin as BaseGalleryHasMediaAdmin; |
8 | -use Symfony\Component\Form\Extension\Core\Type\CheckboxType; |
|
9 | -use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
|
10 | -use Symfony\Component\Form\Extension\Core\Type\TextType; |
|
11 | 8 | |
12 | 9 | class GalleryHasMediaAdmin extends BaseGalleryHasMediaAdmin |
13 | 10 | { |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | /** |
341 | 341 | * Get roles |
342 | 342 | * |
343 | - * @return \Doctrine\Common\Collections\Collection |
|
343 | + * @return Role[] |
|
344 | 344 | */ |
345 | 345 | public function getRoles() |
346 | 346 | { |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | /** |
451 | 451 | * Get galleryHasMedia |
452 | 452 | * |
453 | - * @return \Doctrine\Common\Collections\Collection |
|
453 | + * @return GalleryHasMedia |
|
454 | 454 | */ |
455 | 455 | public function getGalleryHasMedia() |
456 | 456 | { |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
145 | - * @return mixed |
|
145 | + * @return string |
|
146 | 146 | */ |
147 | 147 | public function getYear() |
148 | 148 | { |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | /** |
176 | 176 | * Get galleryHasMedia |
177 | 177 | * |
178 | - * @return \Doctrine\Common\Collections\Collection |
|
178 | + * @return GalleryHasMedia |
|
179 | 179 | */ |
180 | 180 | public function getGalleryHasMedia() |
181 | 181 | { |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | /** |
366 | 366 | * Get performanceEvents |
367 | 367 | * |
368 | - * @return \Doctrine\Common\Collections\Collection |
|
368 | + * @return PerformanceEvent[] |
|
369 | 369 | */ |
370 | 370 | public function getPerformanceEvents() |
371 | 371 | { |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | /** |
461 | 461 | * Get galleryHasMedia |
462 | 462 | * |
463 | - * @return \Doctrine\Common\Collections\Collection |
|
463 | + * @return GalleryHasMedia |
|
464 | 464 | */ |
465 | 465 | public function getGalleryHasMedia() |
466 | 466 | { |
@@ -124,7 +124,7 @@ |
||
124 | 124 | /** |
125 | 125 | * Get galleryHasMedia |
126 | 126 | * |
127 | - * @return \Doctrine\Common\Collections\Collection |
|
127 | + * @return GalleryHasMedia |
|
128 | 128 | */ |
129 | 129 | public function getGalleryHasMedia() |
130 | 130 | { |
@@ -117,6 +117,9 @@ |
||
117 | 117 | } |
118 | 118 | } |
119 | 119 | |
120 | + /** |
|
121 | + * @param string $locale |
|
122 | + */ |
|
120 | 123 | protected function formatGalleries($galleries, $locale) |
121 | 124 | { |
122 | 125 | $formatedGaleries = array_filter($galleries, function($gallery) { return $gallery->getMedia(); }); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | protected $count; |
33 | 33 | |
34 | 34 | /** |
35 | - * @return mixed |
|
35 | + * @return Employee[] |
|
36 | 36 | */ |
37 | 37 | public function getEmployees() |
38 | 38 | { |