Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | abstract class AbstractAuthHandler implements AuthHandlerInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var bool |
||
14 | */ |
||
15 | private $suitsCalled = false; |
||
16 | |||
17 | /** |
||
18 | * @var AuthConfigInterface |
||
19 | */ |
||
20 | protected $config; |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function suits(AuthConfigInterface $config): bool |
||
26 | { |
||
27 | $this->suitsCalled = true; |
||
28 | $this->config = $config; |
||
29 | |||
30 | return false; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function auth(MTProto $proto): void |
||
40 | } |
||
41 | } |
||
42 | |||
43 | protected function isAuthorized(MTProto $proto): bool |
||
46 | } |
||
47 | } |
||
48 |