1 | <?php |
||
14 | class PollType |
||
15 | { |
||
16 | /** |
||
17 | * @var int |
||
18 | * |
||
19 | * @ORM\Column(name="id", type="integer") |
||
20 | * @ORM\Id |
||
21 | * @ORM\GeneratedValue(strategy="AUTO") |
||
22 | */ |
||
23 | private $id; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | * |
||
28 | * @ORM\Column(name="name", type="string", length=255, unique=true) |
||
29 | */ |
||
30 | private $name; |
||
31 | |||
32 | /** |
||
33 | * @ORM\OneToMany(targetEntity="Poll", mappedBy="pollType") |
||
34 | */ |
||
35 | private $polls; |
||
36 | |||
37 | /** |
||
38 | * @var float |
||
39 | * |
||
40 | * @ORM\Column(name="quorum", type="float") |
||
41 | */ |
||
42 | private $quorum; |
||
43 | |||
44 | private $electorateGroup; |
||
45 | |||
46 | /** |
||
47 | * @var float |
||
48 | * |
||
49 | * @ORM\Column(name="majority", type="float") |
||
50 | */ |
||
51 | private $majority; |
||
52 | |||
53 | /** |
||
54 | * Constructor. |
||
55 | */ |
||
56 | public function __construct() |
||
60 | |||
61 | /** |
||
62 | * Get id. |
||
63 | * |
||
64 | * @return int |
||
65 | */ |
||
66 | public function getId(): int |
||
70 | |||
71 | /** |
||
72 | * Set name. |
||
73 | * |
||
74 | * @param string $name |
||
75 | * |
||
76 | * @return PollType |
||
77 | */ |
||
78 | public function setName(string $name) |
||
84 | |||
85 | /** |
||
86 | * Get name. |
||
87 | * |
||
88 | * @return string |
||
89 | */ |
||
90 | public function getName(): string |
||
94 | |||
95 | /** |
||
96 | * Add poll. |
||
97 | * |
||
98 | * @param \AppBundle\Entity\Poll $poll |
||
99 | * |
||
100 | * @return PollType |
||
101 | */ |
||
102 | public function addPoll(\AppBundle\Entity\Poll $poll) |
||
108 | |||
109 | /** |
||
110 | * Remove poll. |
||
111 | * |
||
112 | * @param \AppBundle\Entity\Poll $poll |
||
113 | */ |
||
114 | public function removePoll(\AppBundle\Entity\Poll $poll) |
||
118 | |||
119 | /** |
||
120 | * Get polls. |
||
121 | * |
||
122 | * @return \Doctrine\Common\Collections\Collection |
||
123 | */ |
||
124 | public function getPolls() |
||
128 | } |
||
129 |