Total Complexity | 6 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class ClientAuth extends AbstractAuthConfig |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $phone; |
||
15 | |||
16 | /** |
||
17 | * @var string|null |
||
18 | */ |
||
19 | private $password; |
||
20 | |||
21 | /** |
||
22 | * @var string|null |
||
23 | */ |
||
24 | private $code; |
||
25 | |||
26 | /** |
||
27 | * @var PromptInterface |
||
28 | */ |
||
29 | private $prompt; |
||
30 | |||
31 | public function __construct( |
||
32 | string $phone, |
||
33 | string $password = null, |
||
34 | string $code = null, |
||
35 | PromptInterface $prompt = null |
||
36 | ) { |
||
37 | $this->phone = $phone; |
||
38 | $this->password = $password; |
||
39 | $this->code = $code; |
||
40 | $this->prompt = $prompt; |
||
41 | } |
||
42 | |||
43 | public function getPhone(): string |
||
44 | { |
||
45 | return $this->phone; |
||
46 | } |
||
47 | |||
48 | public function getPassword(): string |
||
51 | } |
||
52 | |||
53 | public function getCode(): string |
||
56 | } |
||
57 | |||
58 | private function promptPassword(string $title): string |
||
65 | } |
||
66 | } |
||
67 |