Total Complexity | 1 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | abstract class ABan |
||
13 | { |
||
14 | abstract public function __construct(ASources $source, ?IKBTranslations $lang = null); |
||
15 | |||
16 | /** |
||
17 | * @param string $lookedFor |
||
18 | * @throws BanException |
||
19 | */ |
||
20 | abstract public function setLookedFor(string $lookedFor): void; |
||
21 | |||
22 | 31 | public function isBanned(): bool |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return array<int, string|int|Ip> |
||
29 | */ |
||
30 | abstract protected function matched(): array; |
||
31 | } |
||
32 |