Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.2559 |
Changes | 0 |
1 | <?php |
||
25 | 81 | public function getResolverByType(string $type): PathAttributeResolverInterface |
|
26 | { |
||
27 | 81 | if (!isset($this->resolvers[$type])) { |
|
28 | throw new InvalidArgumentException( |
||
29 | sprintf('No such path attribute resolver registered: "%s"', $type) |
||
30 | ); |
||
31 | } |
||
32 | |||
33 | 81 | return $this->resolvers[$type]; |
|
34 | } |
||
35 | } |
||
36 |