| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 13 | public function __call($proxy, $args = null) |
|
| 29 | { |
||
| 30 | 13 | $possibleProxies = CollectionProxy::$proxies; |
|
| 31 | 13 | $proxies = array_intersect($possibleProxies, $this->getInteractorProxies()); |
|
| 32 | |||
| 33 | 13 | if (false === array_key_exists($proxy, $proxies)) { |
|
| 34 | 1 | throw new \BadMethodCallException("Method [{$proxy}] does not exist on this collection instance."); |
|
| 35 | } |
||
| 36 | |||
| 37 | 12 | return new CollectionProxy($this, $proxy); |
|
|
|
|||
| 38 | } |
||
| 40 |