| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | 2 | public function __call($method, $args) |
|
| 45 | { |
||
| 46 | 2 | if (array_key_exists($method, static::$metrics)) { |
|
| 47 | |||
| 48 | 1 | $metric = new static::$metrics[$method]; |
|
| 49 | |||
| 50 | 1 | return new From($this, $metric); |
|
| 51 | } |
||
| 52 | |||
| 53 | 1 | throw new BadMethodCallException(sprintf('Method: %s does not exist on class: %s', $method, get_class($this))); |
|
| 54 | } |
||
| 55 | |||
| 71 |