| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public function __call($name, array $args) { |
||
| 46 | if (!$this->func_stack) { |
||
| 47 | throw new BadMethodCallException('Cannot call ' . $name . ' because no func stack has been setup.'); |
||
| 48 | } |
||
| 49 | |||
| 50 | $func_stack = $this->func_stack; |
||
| 51 | return $func_stack(new RenderContext\FuncArgs( |
||
| 52 | $this->render, |
||
| 53 | $this->template, |
||
| 54 | $name, |
||
| 55 | $args |
||
| 56 | )); |
||
| 57 | } |
||
| 58 | |||
| 87 |