| @@ 10-71 (lines=62) @@ | ||
| 7 | * @package FreedomCore\TrinityCore\Console\Commands |
|
| 8 | * @codeCoverageIgnore |
|
| 9 | */ |
|
| 10 | class BNetAccount extends BaseCommand |
|
| 11 | { |
|
| 12 | ||
| 13 | /** |
|
| 14 | * Create new battle.net account |
|
| 15 | * @param string $email |
|
| 16 | * @param string $password |
|
| 17 | * @return array|string |
|
| 18 | */ |
|
| 19 | public function create(string $email, string $password) |
|
| 20 | { |
|
| 21 | return $this->executeCommand(__FUNCTION__, get_defined_vars()); |
|
| 22 | } |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Create game account for specified battle.net account |
|
| 26 | * @param string $email |
|
| 27 | * @return array|string |
|
| 28 | */ |
|
| 29 | public function gameAccountCreate(string $email) |
|
| 30 | { |
|
| 31 | return $this->executeCommand(__FUNCTION__, get_defined_vars()); |
|
| 32 | } |
|
| 33 | ||
| 34 | /** |
|
| 35 | * Link existing game account with battle.net account |
|
| 36 | * @param string $email |
|
| 37 | * @param string $login |
|
| 38 | * @return array|string |
|
| 39 | */ |
|
| 40 | public function link(string $email, string $login) |
|
| 41 | { |
|
| 42 | return $this->executeCommand(__FUNCTION__, get_defined_vars()); |
|
| 43 | } |
|
| 44 | ||
| 45 | /** |
|
| 46 | * Unlink existing account from specified battle.net account |
|
| 47 | * @param string $account |
|
| 48 | * @param string $password |
|
| 49 | * @return array|string |
|
| 50 | */ |
|
| 51 | public function unlink(string $account, string $password) |
|
| 52 | { |
|
| 53 | return $this->executeCommand(__FUNCTION__, get_defined_vars()); |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * List game account on specified battle.net account |
|
| 58 | * @param string $email |
|
| 59 | * @return array|string |
|
| 60 | */ |
|
| 61 | public function listGameAccounts(string $email) |
|
| 62 | { |
|
| 63 | return $this->executeCommand(__FUNCTION__, get_defined_vars()); |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * Set new password for specified battle.net account |
|
| 68 | * @param string $email |
|
| 69 | * @param string $password |
|
| 70 | * @param string $repeatPassword |
|
| 71 | * @return array|string |
|
| 72 | */ |
|
| 73 | public function setPassword(string $email, string $password, string $repeatPassword) |
|
| 74 | { |
|
| @@ 10-75 (lines=66) @@ | ||
| 7 | * @package FreedomCore\TrinityCore\Console\Commands |
|
| 8 | * @codeCoverageIgnore |
|
| 9 | */ |
|
| 10 | class Reset extends BaseCommand |
|
| 11 | { |
|
| 12 | ||
| 13 | /** |
|
| 14 | * Reset achievements for specified player |
|
| 15 | * @param string $playerName |
|
| 16 | * @return array|string |
|
| 17 | */ |
|
| 18 | public function achievements(string $playerName) |
|
| 19 | { |
|
| 20 | return $this->executeCommand(__FUNCTION__, get_defined_vars()); |
|
| 21 | } |
|
| 22 | ||
| 23 | /** |
|
| 24 | * Reset honor for specified player |
|
| 25 | * @param string $playerName |
|
| 26 | * @return array|string |
|
| 27 | */ |
|
| 28 | public function honor(string $playerName) |
|
| 29 | { |
|
| 30 | return $this->executeCommand(__FUNCTION__, get_defined_vars()); |
|
| 31 | } |
|
| 32 | ||
| 33 | /** |
|
| 34 | * Reset level for specified player |
|
| 35 | * @param string $playerName |
|
| 36 | * @return array|string |
|
| 37 | */ |
|
| 38 | public function level(string $playerName) |
|
| 39 | { |
|
| 40 | return $this->executeCommand(__FUNCTION__, get_defined_vars()); |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * Reset spells for specified player |
|
| 45 | * @param string $playerName |
|
| 46 | * @return array|string |
|
| 47 | */ |
|
| 48 | public function spells(string $playerName) |
|
| 49 | { |
|
| 50 | return $this->executeCommand(__FUNCTION__, get_defined_vars()); |
|
| 51 | } |
|
| 52 | ||
| 53 | /** |
|
| 54 | * Reset stats for specified player |
|
| 55 | * @param string $playerName |
|
| 56 | * @return array|string |
|
| 57 | */ |
|
| 58 | public function stats(string $playerName) |
|
| 59 | { |
|
| 60 | return $this->executeCommand(__FUNCTION__, get_defined_vars()); |
|
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| 64 | * Reset talents for specified player |
|
| 65 | * @param string $playerName |
|
| 66 | * @return array|string |
|
| 67 | */ |
|
| 68 | public function talents(string $playerName) |
|
| 69 | { |
|
| 70 | return $this->executeCommand(__FUNCTION__, get_defined_vars()); |
|
| 71 | } |
|
| 72 | ||
| 73 | /** |
|
| 74 | * Reset $type (talents/spells) for ALL players |
|
| 75 | * @param string $type |
|
| 76 | * @return array|string |
|
| 77 | */ |
|
| 78 | public function all(string $type) |
|