Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 8 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
44 | View Code Duplication | public function getPersister($index, $type) |
|
45 | { |
||
46 | if (!isset($this->persisters[$index][$type])) { |
||
47 | throw new \InvalidArgumentException(sprintf('No persister was registered for index "%s" and type "%s".', $index, $type)); |
||
48 | } |
||
49 | |||
50 | return $this->container->get($this->persisters[$index][$type]); |
||
51 | } |
||
52 | } |
||
53 |