1: <?php
2:
3: namespace Deimos\Flow\Extension\TSimple;
4:
5: use Deimos\Flow\FlowFunction;
6:
7: class TExtends extends FlowFunction
8: {
9:
10: /**
11: * @return string
12: *
13: * @throws \InvalidArgumentException
14: */
15: public function view()
16: {
17: array_shift($this->data);
18:
19: if (current($this->data) === 'file')
20: {
21: array_shift($this->data); // file
22: array_shift($this->data); // =
23: }
24:
25: return '<?php $this->configure->extendsFile(\'' .
26: $this->flow->selectView() . '\', ' .
27: implode($this->data) .
28: ');?>';
29: }
30:
31: }