@@ -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 | * |
@@ -11,7 +11,6 @@ |
||
11 | 11 | use Victoire\Bundle\BusinessEntityBundle\Converter\ParameterConverter; |
12 | 12 | use Victoire\Bundle\BusinessEntityBundle\Entity\BusinessEntity; |
13 | 13 | use Victoire\Bundle\BusinessEntityBundle\Entity\BusinessEntityInterface; |
14 | -use Victoire\Bundle\BusinessEntityBundle\Entity\BusinessEntityRepository; |
|
15 | 14 | use Victoire\Bundle\BusinessEntityBundle\Entity\BusinessProperty; |
16 | 15 | use Victoire\Bundle\BusinessEntityBundle\Helper\BusinessEntityHelper; |
17 | 16 | use Victoire\Bundle\BusinessPageBundle\Entity\BusinessTemplate; |
@@ -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 |
@@ -42,7 +42,6 @@ |
||
42 | 42 | * |
43 | 43 | * @param \Symfony\Component\Form\FormBuilderInterface $builder |
44 | 44 | * @param string $widgetName |
45 | - * @param string $namespace |
|
46 | 45 | * |
47 | 46 | * @throws \Exception |
48 | 47 | * |
@@ -36,7 +36,7 @@ |
||
36 | 36 | * filter repo to get a list of entities. |
37 | 37 | * |
38 | 38 | * @param ORMBusinessEntity $businessEntity |
39 | - * @param array $filters |
|
39 | + * @param array $filter |
|
40 | 40 | * |
41 | 41 | * @return mixed |
42 | 42 | */ |