@@ -220,7 +220,7 @@ |
||
220 | 220 | /** |
221 | 221 | * @param string $name |
222 | 222 | * |
223 | - * @return PagePartAdmin |
|
223 | + * @return PagePartWidget|null |
|
224 | 224 | */ |
225 | 225 | public function getFormWidget($name) |
226 | 226 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Kunstmaan\PagePartBundle\Helper\FormWidgets; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManager; |
6 | - |
|
7 | 6 | use Doctrine\ORM\EntityManagerInterface; |
8 | 7 | use Kunstmaan\AdminBundle\Helper\FormWidgets\FormWidget; |
9 | 8 | use Kunstmaan\NodeBundle\Entity\PageInterface; |
@@ -10,6 +10,9 @@ |
||
10 | 10 | interface HasPagePartsInterface |
11 | 11 | { |
12 | 12 | |
13 | + /** |
|
14 | + * @return integer |
|
15 | + */ |
|
13 | 16 | public function getId(); |
14 | 17 | |
15 | 18 | /** |
@@ -205,7 +205,7 @@ |
||
205 | 205 | * @param string $pagePartClassName The full class name of the pagepart you want to instantiate. |
206 | 206 | * @param array $setters An array of setternames and their values. array('setName' => 'Kim', 'isDeveloper' => true) |
207 | 207 | * |
208 | - * @return callable The function that will instantiate a pagepart. |
|
208 | + * @return \Closure The function that will instantiate a pagepart. |
|
209 | 209 | */ |
210 | 210 | public function getCreatorArgumentsForPagePartAndProperties($pagePartClassName, array $setters = null) |
211 | 211 | { |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |
138 | - * @return EntityInterface |
|
138 | + * @return HasPagePartsInterface |
|
139 | 139 | */ |
140 | 140 | public function getPage() |
141 | 141 | { |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | } |
350 | 350 | |
351 | 351 | /** |
352 | - * @return array |
|
352 | + * @return PagePartInterface[] |
|
353 | 353 | */ |
354 | 354 | public function getPagePartMap() |
355 | 355 | { |
@@ -100,6 +100,9 @@ |
||
100 | 100 | return $result; |
101 | 101 | } |
102 | 102 | |
103 | + /** |
|
104 | + * @param string $name |
|
105 | + */ |
|
103 | 106 | private function getValue($name) |
104 | 107 | { |
105 | 108 | if (isset($this->presets[$name])) { |
@@ -49,7 +49,7 @@ |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
52 | - * @return array |
|
52 | + * @return row[] |
|
53 | 53 | */ |
54 | 54 | public function getRows() |
55 | 55 | { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @param string $name |
37 | - * @param number $span |
|
37 | + * @param integer $span |
|
38 | 38 | * @param string $template |
39 | 39 | * @param array $children |
40 | 40 | */ |
@@ -13,7 +13,7 @@ |
||
13 | 13 | private $usesExtendedPagePartChooser = false; |
14 | 14 | |
15 | 15 | /** |
16 | - * @return array |
|
16 | + * @return \Twig_SimpleFunction[] |
|
17 | 17 | */ |
18 | 18 | public function getFunctions() |
19 | 19 | { |
@@ -26,7 +26,7 @@ |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
29 | - * @return array |
|
29 | + * @return \Twig_SimpleFunction[] |
|
30 | 30 | */ |
31 | 31 | public function getFunctions() |
32 | 32 | { |