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