Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.0625 |
Changes | 0 |
1 | <?php |
||
33 | 1 | public function getPersister(string $index): ObjectPersisterInterface |
|
34 | { |
||
35 | 1 | if (!$this->persisters->has($index)) { |
|
36 | throw new \InvalidArgumentException(sprintf('No persister was registered for index "%s".', $index)); |
||
37 | } |
||
38 | |||
39 | 1 | return $this->persisters->get($index); |
|
40 | } |
||
41 | } |
||
42 |