| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | public function __call( $method, $parameters ) { |
||
| 44 | if ( ! $this->hasAlias( $method ) ) { |
||
| 45 | throw new BadMethodCallException( "Method {$method} does not exist." ); |
||
| 46 | } |
||
| 47 | |||
| 48 | $target = $this->aliases[ $method ]; |
||
| 49 | |||
| 50 | if ( is_string( $target ) ) { |
||
| 51 | return $this->resolve( $target ); |
||
| 52 | } |
||
| 53 | |||
| 54 | /** @var $target Closure */ |
||
| 55 | return call_user_func_array( $target->bindTo( $this, static::class ), $parameters ); |
||
| 56 | } |
||
| 66 |