| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 51 | public function create($name, array $arguments = []) |
||
| 52 | { |
||
| 53 | $matcherClass = $this->container->get($name); |
||
| 54 | |||
| 55 | if (count($arguments) <= 1) { |
||
| 56 | $matcher = $matcherClass->newInstance($arguments); |
||
| 57 | } else { |
||
| 58 | $matcher = $matcherClass->newInstance([$arguments]); |
||
| 59 | } |
||
| 60 | |||
| 61 | return $matcher; |
||
| 62 | } |
||
| 63 | } |
||
| 64 |