nur-sery/nur_src/v/base/TSimplePrintable.php

11 lines
228 B
PHP
Raw Normal View History

2023-12-03 22:10:18 +04:00
<?php
namespace nur\v\base;
trait TSimplePrintable {
function getContent(): iterable {
ob_start(null, 0, PHP_OUTPUT_HANDLER_STDFLAGS ^ PHP_OUTPUT_HANDLER_FLUSHABLE);
$this->print();
return [ob_get_clean()];
}
}