@@ -14,11 +14,17 @@ discard block |
||
| 14 | 14 | private $class; |
| 15 | 15 | private $lang = 'en'; |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param string $lang |
|
| 19 | + */ |
|
| 17 | 20 | public function setLang($lang) |
| 18 | 21 | { |
| 19 | 22 | $this->lang = $lang; |
| 20 | 23 | } |
| 21 | 24 | |
| 25 | + /** |
|
| 26 | + * @param DeCaptchaBase $class |
|
| 27 | + */ |
|
| 22 | 28 | public function __construct($class) |
| 23 | 29 | { |
| 24 | 30 | $this->class = $class; |
@@ -312,10 +318,10 @@ discard block |
||
| 312 | 318 | } |
| 313 | 319 | |
| 314 | 320 | /** |
| 315 | - * @param string|array $name |
|
| 321 | + * @param string[] $name |
|
| 316 | 322 | * @param string $separator |
| 317 | 323 | * |
| 318 | - * @return string|array |
|
| 324 | + * @return string |
|
| 319 | 325 | */ |
| 320 | 326 | public function getText($name, $separator = '; ') |
| 321 | 327 | { |
@@ -541,6 +547,9 @@ discard block |
||
| 541 | 547 | return $str; |
| 542 | 548 | } |
| 543 | 549 | |
| 550 | + /** |
|
| 551 | + * @param string $keyMask |
|
| 552 | + */ |
|
| 544 | 553 | private function getNameConst($keyMask, $value) |
| 545 | 554 | { |
| 546 | 555 | $class = $this->class; |
@@ -578,6 +587,9 @@ discard block |
||
| 578 | 587 | return $str; |
| 579 | 588 | } |
| 580 | 589 | |
| 590 | + /** |
|
| 591 | + * @param string $lang |
|
| 592 | + */ |
|
| 581 | 593 | public function getFileName($lang = null) |
| 582 | 594 | { |
| 583 | 595 | if (is_null($lang)) { |