1 | <?php |
||
11 | class Action |
||
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="string", length=100) |
||
27 | */ |
||
28 | private $alias; |
||
29 | |||
30 | /** |
||
31 | * @return mixed |
||
32 | */ |
||
33 | public function getAlias() |
||
37 | |||
38 | /** |
||
39 | * @param mixed $alias |
||
40 | * @return Action |
||
41 | */ |
||
42 | 1 | public function setAlias($alias) |
|
47 | |||
48 | /** |
||
49 | * @ORM\Column(type="string", length=100) |
||
50 | */ |
||
51 | private $executor; |
||
52 | |||
53 | /** |
||
54 | * @ORM\Column(type="text") |
||
55 | */ |
||
56 | private $arguments; |
||
57 | |||
58 | /** |
||
59 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Device", inversedBy="actions") |
||
60 | */ |
||
61 | private $device; |
||
62 | |||
63 | /** |
||
64 | * @ORM\Column(type="string", length=100) |
||
65 | */ |
||
66 | private $type; |
||
67 | |||
68 | |||
69 | /** |
||
70 | * @ORM\OneToMany(targetEntity="AppBundle\Entity\ActionHistory", mappedBy="action") |
||
71 | */ |
||
72 | public $history; |
||
73 | |||
74 | /** |
||
75 | * @ORM\OneToMany(targetEntity="AppBundle\Entity\Trigger", mappedBy="onActivate") |
||
76 | */ |
||
77 | public $activateTriggers; |
||
78 | |||
79 | /** |
||
80 | * @ORM\OneToMany(targetEntity="AppBundle\Entity\Trigger", mappedBy="onDeactivate") |
||
81 | */ |
||
82 | public $deactivateTriggers; |
||
83 | |||
84 | |||
85 | /** |
||
86 | * @return mixed |
||
87 | */ |
||
88 | public function getType() |
||
92 | |||
93 | /** |
||
94 | * @param mixed $type |
||
95 | * @return Action |
||
96 | */ |
||
97 | 1 | public function setType($type) |
|
102 | |||
103 | /** |
||
104 | * @return Device |
||
105 | */ |
||
106 | 1 | public function getDevice() |
|
110 | |||
111 | /** |
||
112 | * @param mixed $device |
||
113 | * @return Action |
||
114 | */ |
||
115 | 1 | public function setDevice($device) |
|
120 | |||
121 | /** |
||
122 | * @return mixed |
||
123 | */ |
||
124 | 1 | public function getArguments() |
|
128 | |||
129 | /** |
||
130 | * @param mixed $arguments |
||
131 | * @return Action |
||
132 | */ |
||
133 | 1 | public function setArguments($arguments) |
|
138 | |||
139 | |||
140 | /** |
||
141 | * @return mixed |
||
142 | */ |
||
143 | public function getId() |
||
147 | |||
148 | /** |
||
149 | * @param mixed $id |
||
150 | * @return Action |
||
151 | */ |
||
152 | public function setId($id) |
||
157 | |||
158 | /** |
||
159 | * @return mixed |
||
160 | */ |
||
161 | public function getName() |
||
165 | |||
166 | /** |
||
167 | * @param mixed $name |
||
168 | * @return Action |
||
169 | */ |
||
170 | 1 | public function setName($name) |
|
175 | |||
176 | /** |
||
177 | * @return mixed |
||
178 | */ |
||
179 | 1 | public function getExecutor() |
|
183 | |||
184 | /** |
||
185 | * @param mixed $executor |
||
186 | * @return Action |
||
187 | */ |
||
188 | 1 | public function setExecutor($executor) |
|
193 | |||
194 | public function __toString() |
||
198 | } |
||
199 |