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 int 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 BusinessProperty[] 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 ArrayCollection The businnes properties |
||
135 | */ |
||
136 | public function getBusinessPropertiesByType($type) |
||
150 | |||
151 | /** |
||
152 | * Get the business properties names by type. |
||
153 | * |
||
154 | * |
||
155 | * @return ArrayCollection The businnes properties |
||
156 | */ |
||
157 | public function getBusinessParameters() |
||
169 | |||
170 | /** |
||
171 | * Get the business identifiers. |
||
172 | * |
||
173 | * |
||
174 | * @return ArrayCollection The businnes properties |
||
175 | */ |
||
176 | public function getBusinessIdentifiers() |
||
191 | |||
192 | /** |
||
193 | * @return array |
||
194 | */ |
||
195 | public function getAvailableWidgets() |
||
199 | |||
200 | /** |
||
201 | * @param array $availableWidgets |
||
202 | */ |
||
203 | public function setAvailableWidgets($availableWidgets) |
||
207 | |||
208 | /** |
||
209 | * @return bool |
||
210 | */ |
||
211 | public function isDisable() |
||
215 | |||
216 | /** |
||
217 | * @param bool $disable |
||
218 | */ |
||
219 | public function setDisable($disable) |
||
223 | |||
224 | public function __toString() |
||
228 | } |
||
229 |