@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * Inject Widgets in View's builtWidgetMap. |
73 | 73 | * |
74 | 74 | * @param View $view |
75 | - * @param $viewWidgets |
|
75 | + * @param Widget[] $viewWidgets |
|
76 | 76 | */ |
77 | 77 | private function injectWidgets(View $view, $viewWidgets) |
78 | 78 | { |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * @throws \Throwable |
184 | 184 | * @throws \TypeError |
185 | 185 | * |
186 | - * @return array |
|
186 | + * @return Widget[] |
|
187 | 187 | */ |
188 | 188 | private function setAssociatedEntities(array $repositories) |
189 | 189 | { |
@@ -68,7 +68,7 @@ |
||
68 | 68 | |
69 | 69 | /** |
70 | 70 | * @param Element $page |
71 | - * @param float|int $timeout |
|
71 | + * @param integer $timeout |
|
72 | 72 | */ |
73 | 73 | public function assertPageAddress($page, $timeout = 10000) |
74 | 74 | { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | /** |
56 | 56 | * Get the id. |
57 | 57 | * |
58 | - * @return string The id |
|
58 | + * @return integer The id |
|
59 | 59 | */ |
60 | 60 | public function getId() |
61 | 61 | { |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | /** |
96 | 96 | * Get the business properties. |
97 | 97 | * |
98 | - * @return array The business properties |
|
98 | + * @return BusinessProperty[] The business properties |
|
99 | 99 | */ |
100 | 100 | public function getBusinessProperties() |
101 | 101 | { |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | * |
132 | 132 | * @param string $type |
133 | 133 | * |
134 | - * @return BusinessProperty[] The businnes properties |
|
134 | + * @return ArrayCollection The businnes properties |
|
135 | 135 | */ |
136 | 136 | public function getBusinessPropertiesByType($type) |
137 | 137 | { |
@@ -151,7 +151,6 @@ discard block |
||
151 | 151 | /** |
152 | 152 | * Get the business properties names by type. |
153 | 153 | * |
154 | - * @param string $type |
|
155 | 154 | * |
156 | 155 | * @return ArrayCollection The businnes properties |
157 | 156 | */ |
@@ -171,7 +170,6 @@ discard block |
||
171 | 170 | /** |
172 | 171 | * Get the business identifiers. |
173 | 172 | * |
174 | - * @param string $type |
|
175 | 173 | * |
176 | 174 | * @return ArrayCollection The businnes properties |
177 | 175 | */ |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * Set the type. |
64 | 64 | * |
65 | - * @param string $type |
|
65 | + * @param string $types |
|
66 | 66 | */ |
67 | 67 | public function setTypes($types) |
68 | 68 | { |
@@ -196,6 +196,9 @@ discard block |
||
196 | 196 | $this->filterMethod = $filterMethod; |
197 | 197 | } |
198 | 198 | |
199 | + /** |
|
200 | + * @param string $type |
|
201 | + */ |
|
199 | 202 | public function hasType($type) |
200 | 203 | { |
201 | 204 | return in_array($type, $this->getTypes()); |
@@ -78,6 +78,9 @@ |
||
78 | 78 | return $this->ormBusinessEntityRepository->findOneBy(['class' => $classname]); |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param string $widgetName |
|
83 | + */ |
|
81 | 84 | public function getAvailableForWidget($widgetName) |
82 | 85 | { |
83 | 86 | $classes = $this->businessEntityRepository->getByAvailableWidgets($widgetName); |
@@ -388,7 +388,7 @@ |
||
388 | 388 | * |
389 | 389 | * @throws Exception If the business entity was not found |
390 | 390 | * |
391 | - * @return template |
|
391 | + * @return \Victoire\Bundle\BusinessEntityBundle\Entity\BusinessEntity |
|
392 | 392 | */ |
393 | 393 | private function getBusinessEntity($id) |
394 | 394 | { |
@@ -218,8 +218,7 @@ |
||
218 | 218 | /** |
219 | 219 | * Guess the best pattern to represent given reflectionClass. |
220 | 220 | * |
221 | - * @param \ReflectionClass $refClass |
|
222 | - * @param int $entityId |
|
221 | + * @param int $entity |
|
223 | 222 | * @param EntityManager $em |
224 | 223 | * @param string $originalRefClassName When digging into parentClass, we do not have to forget originalClass to be able to get reference after all |
225 | 224 | * |
@@ -38,7 +38,7 @@ |
||
38 | 38 | /** |
39 | 39 | * get the pagePatterns for the business entity query. |
40 | 40 | * |
41 | - * @param string $businessEntityId |
|
41 | + * @param BusinessEntity $businessEntity |
|
42 | 42 | * |
43 | 43 | * @return QueryBuilder |
44 | 44 | */ |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | - * @return mixed |
|
32 | + * @return null|ContainerInterface |
|
33 | 33 | */ |
34 | 34 | public function getContainer() |
35 | 35 | { |
@@ -231,8 +231,8 @@ discard block |
||
231 | 231 | } |
232 | 232 | |
233 | 233 | /** |
234 | - * @param $className |
|
235 | - * @param $annotationObj |
|
234 | + * @param string $className |
|
235 | + * @param BusinessEntity $annotationObj |
|
236 | 236 | * @param $businessProperties |
237 | 237 | * |
238 | 238 | * @return ORMBusinessEntity |