@@ -29,13 +29,13 @@ |
||
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * @param $url |
|
| 33 | - * @param $callback |
|
| 32 | + * @param string $url |
|
| 33 | + * @param callable $callback |
|
| 34 | 34 | * @param null|mixed $additionalData |
| 35 | 35 | * @param array $options |
| 36 | 36 | * |
| 37 | 37 | * @param array|\stdClass $parameters one dimensional array or \stdClass with post key-value pairs |
| 38 | - * @return CallbackCurl |
|
| 38 | + * @return Job |
|
| 39 | 39 | */ |
| 40 | 40 | public function createCurlJob($url, $callback, $additionalData = null, $options = [], $parameters = []) |
| 41 | 41 | { |
@@ -181,7 +181,7 @@ |
||
| 181 | 181 | |
| 182 | 182 | /** |
| 183 | 183 | * loads votes from server |
| 184 | - * @param array $players |
|
| 184 | + * @param integer[] $players |
|
| 185 | 185 | * @param bool $getVotesOnly |
| 186 | 186 | */ |
| 187 | 187 | public function loadVotes($players = array(), $getVotesOnly = false) |
@@ -87,6 +87,10 @@ discard block |
||
| 87 | 87 | $this->playerStorage = $playerStorage; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | + /** |
|
| 91 | + * @param string $login |
|
| 92 | + * @param integer $vote |
|
| 93 | + */ |
|
| 90 | 94 | public function setVote($login, $vote) |
| 91 | 95 | { |
| 92 | 96 | $player = $this->playerStorage->getPlayerInfo($login); |
@@ -183,7 +187,6 @@ discard block |
||
| 183 | 187 | } |
| 184 | 188 | |
| 185 | 189 | /** |
| 186 | - * @param MxRating $ratings |
|
| 187 | 190 | * @return mixed |
| 188 | 191 | */ |
| 189 | 192 | public function onMxKarmaVoteLoad(MxRating $mxRating) |
@@ -34,6 +34,9 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | |
| 37 | + /** |
|
| 38 | + * @param null|string $login |
|
| 39 | + */ |
|
| 37 | 40 | public function setCustomUi($login) |
| 38 | 41 | { |
| 39 | 42 | if ($login == null) { |
@@ -47,6 +50,9 @@ discard block |
||
| 47 | 50 | } |
| 48 | 51 | |
| 49 | 52 | |
| 53 | + /** |
|
| 54 | + * @param boolean $multicall |
|
| 55 | + */ |
|
| 50 | 56 | public function sendCustomUi($login, $multicall) |
| 51 | 57 | { |
| 52 | 58 | $properties = /** @lang XML */ |