1 | <?php |
||
14 | class CheckerRepository |
||
15 | { |
||
16 | /** |
||
17 | * @var Collection |
||
18 | */ |
||
19 | protected $protocolsToChecker = []; |
||
20 | |||
21 | |||
22 | /** |
||
23 | * @var |
||
24 | */ |
||
25 | protected static $self; |
||
26 | |||
27 | /** |
||
28 | * @param $protocol |
||
29 | * @param Checker $checker |
||
30 | */ |
||
31 | public function addChecker($protocol, Checker $checker) |
||
41 | |||
42 | /** |
||
43 | * @param null $protocol |
||
44 | * @return array |
||
45 | */ |
||
46 | public function getChecker($protocol = null): array |
||
58 | |||
59 | /** |
||
60 | * @return CheckerRepository |
||
61 | */ |
||
62 | public static function get() |
||
70 | } |
||
71 |