Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
46 | public function getChecker($protocol = null): array |
||
47 | { |
||
48 | if ($protocol != null) { |
||
49 | if (array_key_exists($protocol, $this->protocolsToChecker)) { |
||
50 | return $this->protocolsToChecker[$protocol]; |
||
51 | } else { |
||
52 | throw InvalidArgument::unknowProtocol($protocol); |
||
53 | } |
||
54 | } |
||
55 | |||
56 | return $this->protocolsToChecker; |
||
57 | } |
||
58 | |||
71 |