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