Total Complexity | 7 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Bans |
||
16 | { |
||
17 | /** @var Bans\ABan[] */ |
||
18 | protected array $sources = []; |
||
19 | |||
20 | /** |
||
21 | * @param IKBTranslations|null $lang |
||
22 | * @param string|array<string>|array<int, string>|Sources\ASources $sources |
||
23 | * @throws BanException |
||
24 | */ |
||
25 | 3 | public function __construct(?IKBTranslations $lang = null, ...$sources) |
|
30 | } |
||
31 | 3 | } |
|
32 | |||
33 | /** |
||
34 | * @param string|array<string>|array<int, string>|Sources\ASources ...$toCompare |
||
35 | * @throws BanException |
||
36 | * @return bool |
||
37 | */ |
||
38 | 3 | public function has(...$toCompare): bool |
|
53 |