1 | <?php |
||
15 | class PollOption extends BaseType implements TypeInterface |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | static protected $requiredParams = ['text', 'voter_count']; |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | static protected $map = [ |
||
30 | 'text' => true, |
||
31 | 'voter_count' => true |
||
32 | ]; |
||
33 | |||
34 | /** |
||
35 | * Option text, 1-100 characters |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $text; |
||
40 | |||
41 | /** |
||
42 | * Number of users that voted for this option |
||
43 | * |
||
44 | * @var integer |
||
45 | */ |
||
46 | protected $voterCount; |
||
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getText() |
||
55 | |||
56 | /** |
||
57 | * @param string $text |
||
58 | */ |
||
59 | public function setText($text) |
||
63 | |||
64 | /** |
||
65 | * @return int |
||
66 | */ |
||
67 | public function getVoterCount() |
||
71 | |||
72 | /** |
||
73 | * @param int $voterCount |
||
74 | */ |
||
75 | public function setVoterCount($voterCount) |
||
79 | |||
80 | |||
81 | } |
||
82 |