1: <?php
2:
3: namespace Deimos\Flow\Extension\TSimple;
4:
5: use Deimos\Flow\FlowFunction;
6:
7: class TInclude 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 echo $this->configure->requireFile(' . implode($this->data) . ');?>';
26: }
27:
28: }