@@ -122,7 +122,7 @@ |
||
| 122 | 122 | /** |
| 123 | 123 | * Recursive search all dome tree in order to find all translatable labels. |
| 124 | 124 | * |
| 125 | - * @param Container|\FML\ManiaLink $control |
|
| 125 | + * @param \FML\ManiaLink $control |
|
| 126 | 126 | * @param $translations |
| 127 | 127 | */ |
| 128 | 128 | protected function getDictionaryInformation($control, &$translations) |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * @param $control |
| 26 | - * @param $text |
|
| 26 | + * @param string $text |
|
| 27 | 27 | */ |
| 28 | 28 | public function addTooltip($control, $text) |
| 29 | 29 | { |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * layoutLine constructor. |
| 39 | 39 | * @param float $startX |
| 40 | 40 | * @param float $startY |
| 41 | - * @param object[] $elements |
|
| 41 | + * @param \eXpansion\Framework\Gui\Components\uiButton[] $elements |
|
| 42 | 42 | * @param float $margin |
| 43 | 43 | * @throws \Exception |
| 44 | 44 | */ |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | /** |
| 137 | - * @return mixed |
|
| 137 | + * @return double |
|
| 138 | 138 | */ |
| 139 | 139 | public function getY() |
| 140 | 140 | { |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | /** |
| 177 | - * @param object $element |
|
| 177 | + * @param Renderable $element |
|
| 178 | 178 | */ |
| 179 | 179 | public function addChild(Renderable $element) |
| 180 | 180 | { |
@@ -76,6 +76,10 @@ discard block |
||
| 76 | 76 | $this->setSize($sizeX, $sizeY); |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | + /** |
|
| 80 | + * @param double $x |
|
| 81 | + * @param double $y |
|
| 82 | + */ |
|
| 79 | 83 | public function setPosition($x, $y) |
| 80 | 84 | { |
| 81 | 85 | $this->startX = $x; |
@@ -191,7 +195,7 @@ discard block |
||
| 191 | 195 | } |
| 192 | 196 | |
| 193 | 197 | /** |
| 194 | - * @return float|int |
|
| 198 | + * @return double |
|
| 195 | 199 | */ |
| 196 | 200 | public function getWidth() |
| 197 | 201 | { |
@@ -213,6 +217,9 @@ discard block |
||
| 213 | 217 | } |
| 214 | 218 | |
| 215 | 219 | |
| 220 | + /** |
|
| 221 | + * @param string $class |
|
| 222 | + */ |
|
| 216 | 223 | public function addClass($class) |
| 217 | 224 | { |
| 218 | 225 | $this->frameClasses[] = $class; |
@@ -25,8 +25,8 @@ |
||
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @param $url |
|
| 29 | - * @param $callback |
|
| 28 | + * @param string $url |
|
| 29 | + * @param callable $callback |
|
| 30 | 30 | * @param null $additionalData |
| 31 | 31 | * @param array $options |
| 32 | 32 | * |
@@ -93,7 +93,6 @@ discard block |
||
| 93 | 93 | /** |
| 94 | 94 | * Checks if a login or player has a certain permission or not. |
| 95 | 95 | * |
| 96 | - * @param string|Group|Player $login Login of the player to check for permission. |
|
| 97 | 96 | * @param string $permission The permission to check for. |
| 98 | 97 | * |
| 99 | 98 | * @return bool |
@@ -116,6 +115,9 @@ discard block |
||
| 116 | 115 | } |
| 117 | 116 | } |
| 118 | 117 | |
| 118 | + /** |
|
| 119 | + * @param string $permission |
|
| 120 | + */ |
|
| 119 | 121 | protected function hasLoginPermission($login, $permission) |
| 120 | 122 | { |
| 121 | 123 | if ($login instanceof Player) { |
@@ -66,6 +66,9 @@ |
||
| 66 | 66 | return parent::render($domDocument); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param boolean $translate |
|
| 71 | + */ |
|
| 69 | 72 | public function setTranslate($translate) |
| 70 | 73 | { |
| 71 | 74 | if ($translate) { |