| 1 | <?php |
||
| 6 | class SingleVoterResult implements ISingleVoterResult |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var VotingDecisionEnum |
||
| 11 | */ |
||
| 12 | private $decision; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var mixed |
||
| 16 | */ |
||
| 17 | private $reason; |
||
| 18 | |||
| 19 | |||
| 20 | /** |
||
| 21 | * SingleVoterResult constructor. |
||
| 22 | * @param VotingDecisionEnum $decision |
||
| 23 | * @param mixed $reason |
||
| 24 | */ |
||
| 25 | 17 | public function __construct(VotingDecisionEnum $decision, $reason = null) |
|
| 30 | |||
| 31 | |||
| 32 | /** |
||
| 33 | * @return VotingDecisionEnum |
||
| 34 | */ |
||
| 35 | 17 | public function getDecision() |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | 13 | public function getReason() |
|
| 47 | } |