1 | <?php namespace FreedomCore\TrinityCore\Console\Commands; |
||
10 | class Account extends BaseCommand |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * Create new account |
||
15 | * @param string $account |
||
16 | * @param string $password |
||
17 | * @return mixed |
||
18 | */ |
||
19 | public function create(string $account, string $password) |
||
23 | |||
24 | /** |
||
25 | * Delete specified account |
||
26 | * @param string $account |
||
27 | * @return mixed |
||
28 | */ |
||
29 | public function delete(string $account) |
||
33 | |||
34 | /** |
||
35 | * Set new password for the account |
||
36 | * @param string $oldPassword |
||
37 | * @param string $newPassword |
||
38 | * @param string $repeatPassword |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function password(string $oldPassword, string $newPassword, string $repeatPassword) |
||
45 | |||
46 | /** |
||
47 | * Set expansion version for specified account |
||
48 | * @param string $account |
||
49 | * @param int $addon |
||
50 | * @return mixed |
||
51 | */ |
||
52 | public function setAddon(string $account, int $addon) |
||
56 | |||
57 | /** |
||
58 | * Set Game Mater Level For Account |
||
59 | * @param string $account |
||
60 | * @param int $level |
||
61 | * @param int $realm |
||
62 | * @return mixed |
||
63 | */ |
||
64 | public function setGmLevel(string $account, int $level, int $realm = -1) |
||
68 | |||
69 | /** |
||
70 | * Sets the regmail for specified account |
||
71 | * @param string $account |
||
72 | * @param string $regMail |
||
73 | * @param string $repeatRegMail |
||
74 | * @return array|string |
||
75 | */ |
||
76 | public function setSecRegmail(string $account, string $regMail, string $repeatRegMail) |
||
80 | |||
81 | /** |
||
82 | * Set the email for specified account |
||
83 | * @param string $account |
||
84 | * @param string $email |
||
85 | * @param string $repeatEmail |
||
86 | * @return array|string |
||
87 | */ |
||
88 | public function setSecEmail(string $account, string $email, string $repeatEmail) |
||
92 | |||
93 | /** |
||
94 | * Set password for account. |
||
95 | * @param string $oldPassword |
||
96 | * @param string $newPassword |
||
97 | * @param string $repeatPassword |
||
98 | * @return mixed |
||
99 | */ |
||
100 | public function setPassword(string $oldPassword, string $newPassword, string $repeatPassword) |
||
104 | } |
||
105 |