1 | <?php |
||
16 | abstract class BusinessEntity |
||
17 | { |
||
18 | /** |
||
19 | * @var int |
||
20 | * |
||
21 | * @ORM\Column(name="id", type="integer") |
||
22 | * @ORM\Id |
||
23 | * @ORM\GeneratedValue(strategy="AUTO") |
||
24 | */ |
||
25 | protected $id; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | * |
||
30 | * @ORM\Column(name="name", type="string", length=255) |
||
31 | */ |
||
32 | protected $name; |
||
33 | |||
34 | /** |
||
35 | * @var BusinessProperty[] |
||
36 | * |
||
37 | * @ORM\OneToMany(targetEntity="Victoire\Bundle\BusinessEntityBundle\Entity\BusinessProperty", mappedBy="businessEntity", cascade={"persist", "remove"}) |
||
38 | */ |
||
39 | protected $businessProperties; |
||
40 | |||
41 | /** |
||
42 | * @var array |
||
43 | * |
||
44 | * @ORM\Column(name="availableWidgets", type="text") |
||
45 | */ |
||
46 | protected $availableWidgets; |
||
47 | |||
48 | protected $disable = false; |
||
49 | |||
50 | public function __construct() |
||
54 | |||
55 | /** |
||
56 | * Get the id. |
||
57 | * |
||
58 | * @return string The id |
||
59 | */ |
||
60 | public function getId() |
||
64 | |||
65 | /** |
||
66 | * Get the name. |
||
67 | * |
||
68 | * @return string The name |
||
69 | */ |
||
70 | public function getName() |
||
74 | |||
75 | /** |
||
76 | * Set the name. |
||
77 | * |
||
78 | * @param string $name |
||
79 | */ |
||
80 | public function setName($name) |
||
84 | |||
85 | /** |
||
86 | * Add a business property. |
||
87 | * |
||
88 | * @param BusinessProperty $businessProperty |
||
89 | */ |
||
90 | public function addBusinessProperty(BusinessProperty $businessProperty) |
||
94 | |||
95 | /** |
||
96 | * Get the business properties. |
||
97 | * |
||
98 | * @return array The business properties |
||
99 | */ |
||
100 | public function getBusinessProperties() |
||
104 | |||
105 | /** |
||
106 | * Get a business property by name. |
||
107 | * |
||
108 | * @return BusinessProperty|null The business property |
||
109 | */ |
||
110 | public function getBusinessPropertyByName($name) |
||
118 | |||
119 | /** |
||
120 | * Get the business properties. |
||
121 | * |
||
122 | * @return array The business properties |
||
123 | */ |
||
124 | public function setBusinessProperties($businessProperties) |
||
128 | |||
129 | /** |
||
130 | * Get the business properties by type. |
||
131 | * |
||
132 | * @param string $type |
||
133 | * |
||
134 | * @return BusinessProperty[] The businnes properties |
||
135 | */ |
||
136 | public function getBusinessPropertiesByType($type) |
||
150 | |||
151 | /** |
||
152 | * Get the business properties names by type. |
||
153 | * |
||
154 | * @param string $type |
||
155 | * |
||
156 | * @return ArrayCollection The businnes properties |
||
157 | */ |
||
158 | public function getBusinessParameters() |
||
170 | |||
171 | /** |
||
172 | * Get the business identifiers. |
||
173 | * |
||
174 | * @param string $type |
||
175 | * |
||
176 | * @return ArrayCollection The businnes properties |
||
177 | */ |
||
178 | public function getBusinessIdentifiers() |
||
193 | |||
194 | /** |
||
195 | * @return array |
||
196 | */ |
||
197 | public function getAvailableWidgets() |
||
201 | |||
202 | /** |
||
203 | * @param array $availableWidgets |
||
204 | */ |
||
205 | public function setAvailableWidgets($availableWidgets) |
||
209 | |||
210 | /** |
||
211 | * @return bool |
||
212 | */ |
||
213 | public function isDisable() |
||
217 | |||
218 | /** |
||
219 | * @param bool $disable |
||
220 | */ |
||
221 | public function setDisable($disable) |
||
225 | |||
226 | public function __toString() |
||
230 | } |
||
231 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..