@@ -154,6 +154,9 @@ |
||
| 154 | 154 | |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | + /** |
|
| 158 | + * @param string $message |
|
| 159 | + */ |
|
| 157 | 160 | public function setMessage($message) |
| 158 | 161 | { |
| 159 | 162 | $this->label->setText($message); |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use eXpansion\Framework\Core\Model\Gui\WidgetFactoryContext; |
| 10 | 10 | use eXpansion\Framework\Core\Plugins\Gui\WidgetFactory; |
| 11 | 11 | use eXpansion\Framework\Gui\Builders\WidgetBackground; |
| 12 | -use eXpansion\Framework\Gui\Components\uiButton; |
|
| 13 | 12 | use eXpansion\Framework\Gui\Components\uiLabel; |
| 14 | 13 | use eXpansion\Framework\Gui\Ui\Factory; |
| 15 | 14 | use FML\Controls\Quad; |
@@ -187,6 +187,9 @@ |
||
| 187 | 187 | return $this->currentVote; |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | + /** |
|
| 191 | + * @param string $type |
|
| 192 | + */ |
|
| 190 | 193 | public function startVote(Player $player, $type) |
| 191 | 194 | { |
| 192 | 195 | if ($this->getCurrentVote() !== null) { |
@@ -67,6 +67,9 @@ discard block |
||
| 67 | 67 | return $value; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param integer $time |
|
| 72 | + */ |
|
| 70 | 73 | function updateVote($time) |
| 71 | 74 | { |
| 72 | 75 | $this->elapsedTime = $time - $this->startTime; |
@@ -113,7 +116,7 @@ discard block |
||
| 113 | 116 | } |
| 114 | 117 | |
| 115 | 118 | /** |
| 116 | - * @return float |
|
| 119 | + * @return integer |
|
| 117 | 120 | */ |
| 118 | 121 | public function getTotalTime(): int |
| 119 | 122 | { |