Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | trait RenderableBufferedTrait |
||
28 | { |
||
29 | public function render() : string |
||
30 | { |
||
31 | OutputBuffering::start(); |
||
32 | |||
33 | $this->generateOutput(); |
||
34 | |||
35 | return OutputBuffering::get(); |
||
36 | } |
||
37 | |||
38 | abstract protected function generateOutput() : void; |
||
39 | |||
40 | public function display() : void |
||
43 | } |
||
44 | |||
45 | public function __toString() : string |
||
57 | ); |
||
58 | } |
||
61 |