Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class Vote |
||
22 | { |
||
23 | /** |
||
24 | * @var \D3strukt0r\VotifierClient\VoteType\VoteInterface the vote package |
||
25 | */ |
||
26 | private $vote; |
||
27 | |||
28 | /** |
||
29 | * @var \D3strukt0r\VotifierClient\ServerType\ServerTypeInterface the server type information package |
||
30 | */ |
||
31 | private $server; |
||
32 | |||
33 | /** |
||
34 | * Created a Vote object. |
||
35 | * |
||
36 | * @param VoteInterface $vote (Required) The vote package |
||
37 | * @param serverTypeInterface $serverType (Required) The server type information package |
||
38 | */ |
||
39 | public function __construct(VoteInterface $vote, ServerTypeInterface $serverType) |
||
40 | { |
||
41 | $this->vote = $vote; |
||
42 | $this->server = $serverType; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Sends the vote package to the server. |
||
47 | * |
||
48 | * @throws \Exception |
||
49 | */ |
||
50 | public function send(): void |
||
56 | } |
||
57 | } |
||
58 |