Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3.3332 |
Changes | 0 |
1 | <?php |
||
52 | 6 | public function getHandler(int $direction, string $typeName, string $format) |
|
53 | { |
||
54 | do { |
||
55 | 6 | $handler = $this->registry->getHandler($direction, $typeName, $format); |
|
56 | 6 | if (null !== $handler) { |
|
57 | 6 | return $handler; |
|
58 | } |
||
59 | } while ($typeName = get_parent_class($typeName)); |
||
60 | } |
||
61 | } |
||
62 |