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