1 | 2 | simandl | <?php |
2 | | | |
3 | | | namespace Phem\Libraries\Forms\Model; |
4 | | | |
5 | | | /** |
6 | | | * @Entity(readOnly=true) @Table(name="povruc_form_condition") |
7 | | | * |
8 | | | */ |
9 | | | class FormFieldCondition |
10 | | | { |
11 | | | /** @Id @Column(type="integer") */ |
12 | | | private $id; |
13 | | | |
14 | | | /** |
15 | | | * @ManyToOne(targetEntity="FormField",cascade={"all"}) |
16 | | | * @JoinColumn(name="sourceField", referencedColumnName="id") |
17 | | | */ |
18 | | | private $sourceField; |
19 | | | |
20 | | | /** @Column(type="string") */ |
21 | | | private $triggerValue; |
22 | | | |
23 | | | /** @Column(type="string") */ |
24 | | | private $action; |
25 | | | |
26 | | | /** |
27 | | | * @ManyToOne(targetEntity="FormField",cascade={"all"}) |
28 | | | * @JoinColumn(name="targetField", referencedColumnName="id") |
29 | | | */ |
30 | | | private $targetField; |
31 | | | |
32 | | | public function getId() |
33 | | | { |
34 | | | return $this->id; |
35 | | | } |
36 | | | |
37 | | | public function setId($id) |
38 | | | { |
39 | | | $this->id = $id; |
40 | | | } |
41 | | | |
42 | | | public function getSourceField() |
43 | | | { |
44 | | | return $this->sourceField; |
45 | | | } |
46 | | | |
47 | | | public function setSourceField($sourceField) |
48 | | | { |
49 | | | $this->sourceField = $sourceField; |
50 | | | } |
51 | | | |
52 | | | public function getTriggerValue() |
53 | | | { |
54 | | | return $this->triggerValue; |
55 | | | } |
56 | | | |
57 | | | public function setTriggerValue($triggerValue) |
58 | | | { |
59 | | | $this->triggerValue = $triggerValue; |
60 | | | } |
61 | | | |
62 | | | public function getAction() |
63 | | | { |
64 | | | return $this->action; |
65 | | | } |
66 | | | |
67 | | | public function setAction($action) |
68 | | | { |
69 | | | $this->action = $action; |
70 | | | } |
71 | | | |
72 | | | public function getTargetField() |
73 | | | { |
74 | | | return $this->targetField; |
75 | | | } |
76 | | | |
77 | | | public function setTargetField($targetField) |
78 | | | { |
79 | | | $this->targetField = $targetField; |
80 | | | } |
81 | | | |
82 | | | } |
83 | | | |
84 | | | ?> |