| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function __get($name) { |
||
| 29 | if (!$this->prop_stack) { |
||
| 30 | throw new BadMethodCallException('Cannot access ' . $name . ' because no prop stack was setup.'); |
||
| 31 | } |
||
| 32 | |||
| 33 | $prop_stack = $this->prop_stack; |
||
| 34 | return $prop_stack(new RenderContext\PropArgs( |
||
| 35 | $this->render, |
||
| 36 | $this->template, |
||
| 37 | $name |
||
| 38 | )); |
||
| 39 | } |
||
| 40 | |||
| 87 |