| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 59 | public function __invoke(...$args) { |
||
| 60 | if (!$this->func_stack) { |
||
| 61 | throw new BadMethodCallException('Cannot invoke the render context because no func stack has been setup.'); |
||
| 62 | } |
||
| 63 | |||
| 64 | $func_stack = $this->func_stack; |
||
| 65 | return $func_stack(new RenderContext\FuncArgs( |
||
| 66 | $this->render, |
||
| 67 | $this->template, |
||
| 68 | null, |
||
| 69 | $args |
||
| 70 | )); |
||
| 71 | } |
||
| 72 | |||
| 87 |