@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * You can override this method to return the correct entity manager when using multiple databases ... |
19 | 19 | * |
20 | - * @return \Doctrine\Common\Persistence\ObjectManager|object |
|
20 | + * @return \Doctrine\Persistence\ObjectManager |
|
21 | 21 | */ |
22 | 22 | protected function getEntityManager() |
23 | 23 | { |
@@ -65,6 +65,10 @@ |
||
65 | 65 | $object->match('/en/some-uri'); |
66 | 66 | } |
67 | 67 | |
68 | + /** |
|
69 | + * @param \self|null $request |
|
70 | + * @param NodeTranslation $nodeTranslation |
|
71 | + */ |
|
68 | 72 | private function getContainer($request, $multiLanguage = false, $nodeTranslation = null) |
69 | 73 | { |
70 | 74 | $container = $this->createMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
@@ -120,7 +120,7 @@ |
||
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
123 | - * @return array|mixed|\Traversable |
|
123 | + * @return \Pagerfanta\iterable|null |
|
124 | 124 | */ |
125 | 125 | public function getItems() |
126 | 126 | { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * Return the url to edit the given $item |
61 | 61 | * |
62 | - * @param object $item |
|
62 | + * @param \Kunstmaan\AdminListBundle\Tests\AdminList\Configurator\anonymous//src/Kunstmaan/AdminListBundle/Tests/unit/AdminList/Configurator/AbstractDoctrineORMAdminListConfiguratorTest.php$0 $item |
|
63 | 63 | * |
64 | 64 | * @return array |
65 | 65 | */ |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | /** |
78 | 78 | * Get the delete url for the given $item |
79 | 79 | * |
80 | - * @param object $item |
|
80 | + * @param \Kunstmaan\AdminListBundle\Tests\AdminList\Configurator\anonymous//src/Kunstmaan/AdminListBundle/Tests/unit/AdminList/Configurator/AbstractDoctrineORMAdminListConfiguratorTest.php$1 $item |
|
81 | 81 | * |
82 | 82 | * @return array |
83 | 83 | */ |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
128 | - * @return array|Traversable |
|
128 | + * @return \Pagerfanta\iterable|null |
|
129 | 129 | */ |
130 | 130 | public function getItems() |
131 | 131 | { |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * Constructor |
24 | 24 | * |
25 | - * @param object $em entity manager |
|
25 | + * @param EntityManager $em entity manager |
|
26 | 26 | */ |
27 | 27 | public function __construct(EntityManager $em) |
28 | 28 | { |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * |
35 | 35 | * @param Event $event event |
36 | 36 | * |
37 | - * @return Repository |
|
37 | + * @return \Doctrine\Persistence\ObjectRepository|null |
|
38 | 38 | */ |
39 | 39 | public function getRepositoryForEvent($event) |
40 | 40 | { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * |
69 | 69 | * @param string $name name |
70 | 70 | * |
71 | - * @return Repository |
|
71 | + * @return \Doctrine\Persistence\ObjectRepository |
|
72 | 72 | */ |
73 | 73 | protected function getRepository($name) |
74 | 74 | { |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | |
180 | 180 | /** |
181 | 181 | * @param $request |
182 | - * @param null $nodeTranslation |
|
182 | + * @param NodeTranslation $nodeTranslation |
|
183 | 183 | * |
184 | 184 | * @return Container |
185 | 185 | */ |
@@ -241,6 +241,9 @@ discard block |
||
241 | 241 | return Request::create($url); |
242 | 242 | } |
243 | 243 | |
244 | + /** |
|
245 | + * @param NodeTranslation $nodeTranslation |
|
246 | + */ |
|
244 | 247 | private function getEntityManager($nodeTranslation = null) |
245 | 248 | { |
246 | 249 | $em = $this->createMock('Doctrine\ORM\EntityManagerInterface'); |