| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | public static function __callStatic($name, $args) |
||
| 18 | { |
||
| 19 | $class = __NAMESPACE__.'\\'.ucfirst($name); |
||
| 20 | |||
| 21 | if (!class_exists($class)) { |
||
| 22 | throw new BadMethodCallException(sprintf('The repository "%s" does not exists', $class)); |
||
| 23 | } |
||
| 24 | |||
| 25 | return self::create(array_shift($args), $class); |
||
| 26 | } |
||
| 27 | |||
| 76 |