1: <?php
2:
3: namespace Deimos\Flow\Extension\TSimple;
4:
5: use Deimos\Flow\FlowFunction;
6:
7: class TBreak extends FlowFunction
8: {
9:
10: public function view()
11: {
12: if (!empty($this->data))
13: {
14: array_shift($this->data);
15: }
16:
17: $d = sprintf('%d', implode($this->data));
18:
19: return '<?php break ' . ($d ? $d : 1) . '; ?>';
20: }
21:
22: }