1 | <?php |
||
11 | class Variable |
||
12 | { |
||
13 | /** |
||
14 | * @ORM\Column(type="integer") |
||
15 | * @ORM\Id |
||
16 | * @ORM\GeneratedValue(strategy="AUTO") |
||
17 | */ |
||
18 | private $id; |
||
19 | |||
20 | /** |
||
21 | * @ORM\Column(type="string", length=100) |
||
22 | */ |
||
23 | private $name; |
||
24 | |||
25 | /** |
||
26 | * @ORM\Column(type="text") |
||
27 | */ |
||
28 | private $description; |
||
29 | |||
30 | /** |
||
31 | * @ORM\Column(type="text") |
||
32 | */ |
||
33 | private $source; |
||
34 | |||
35 | /** |
||
36 | * @ORM\Column(type="string") |
||
37 | */ |
||
38 | private $parser; |
||
39 | |||
40 | |||
41 | /** |
||
42 | * @ORM\Column(type="string", nullable=true) |
||
43 | */ |
||
44 | private $value; |
||
45 | |||
46 | /** |
||
47 | * @ORM\Column(type="datetime", nullable=true) |
||
48 | */ |
||
49 | private $lastupdate; |
||
50 | /** |
||
51 | * @ORM\Column(type="integer", nullable=true) |
||
52 | */ |
||
53 | private $laststatus; |
||
54 | |||
55 | /** |
||
56 | * @ORM\OneToMany(targetEntity="AppBundle\Entity\VariableHistory", mappedBy="var") |
||
57 | */ |
||
58 | public $history; |
||
59 | |||
60 | /** |
||
61 | * @ORM\OneToMany(targetEntity="AppBundle\Entity\Widget", mappedBy="variable") |
||
62 | */ |
||
63 | public $widgets; |
||
64 | /** |
||
65 | * @ORM\Column(type="boolean"); |
||
66 | */ |
||
67 | public $needSync = true; |
||
68 | |||
69 | /** |
||
70 | * @ORM\Column(type="boolean") |
||
71 | */ |
||
72 | public $needHistory = false; |
||
73 | |||
74 | /** |
||
75 | * @return mixed |
||
76 | */ |
||
77 | public function getId() |
||
78 | { |
||
79 | return $this->id; |
||
80 | } |
||
81 | |||
82 | |||
83 | /** |
||
84 | * @return mixed |
||
85 | */ |
||
86 | 3 | public function getName() |
|
90 | |||
91 | /** |
||
92 | * @param mixed $name |
||
93 | * @return Variable |
||
94 | */ |
||
95 | 8 | public function setName($name) |
|
100 | |||
101 | /** |
||
102 | * @return mixed |
||
103 | */ |
||
104 | public function getDescription() |
||
105 | { |
||
106 | return $this->description; |
||
107 | } |
||
108 | |||
109 | /** |
||
110 | * @param mixed $description |
||
111 | * @return Variable |
||
112 | */ |
||
113 | 8 | public function setDescription($description) |
|
118 | |||
119 | /** |
||
120 | * @return mixed |
||
121 | */ |
||
122 | public function getSource() |
||
126 | |||
127 | /** |
||
128 | * @param mixed $source |
||
129 | * @return Variable |
||
130 | */ |
||
131 | 8 | public function setSource($source) |
|
136 | |||
137 | /** |
||
138 | * @return mixed |
||
139 | */ |
||
140 | 3 | public function getParser() |
|
144 | |||
145 | /** |
||
146 | * @param mixed $parser |
||
147 | * @return Variable |
||
148 | */ |
||
149 | 8 | public function setParser($parser) |
|
154 | |||
155 | /** |
||
156 | * @return mixed |
||
157 | */ |
||
158 | 7 | public function getValue() |
|
162 | |||
163 | /** |
||
164 | * @param mixed $value |
||
165 | * @return Variable |
||
166 | */ |
||
167 | 8 | public function setValue($value) |
|
172 | |||
173 | /** |
||
174 | * @return mixed |
||
175 | */ |
||
176 | 1 | public function getLastupdate() |
|
180 | |||
181 | /** |
||
182 | * @param mixed $lastupdate |
||
183 | * @return Variable |
||
184 | */ |
||
185 | 3 | public function setLastupdate($lastupdate) |
|
190 | |||
191 | /** |
||
192 | * @return mixed |
||
193 | */ |
||
194 | public function getLaststatus() |
||
198 | |||
199 | /** |
||
200 | * @param mixed $laststatus |
||
201 | * @return Variable |
||
202 | */ |
||
203 | 3 | public function setLaststatus($laststatus) |
|
208 | |||
209 | public function __toString() |
||
213 | } |
||
214 |