openCloseTag($this->build($this->builder)); } /** * Open script tag * * @param bool $status */ public function tag(bool $status) { $this->tag = $status; return $this; } /** * Protected get script class */ protected function getScriptClass() { return Singleton::class('ZN\Hypertext\Script'); } /** * Protected script open close tag */ protected function openCloseTag($string) { if( $this->tag === true ) { $script = $this->getScriptClass(); $string = $script->open() . $string . $script->close(); } $this->tag = false; return $string; } /** * Protected is callable option */ protected function isCallableOption($callback, $parameter) { $option = 'function(' . $parameter . '){' . PHP_EOL; $option .= Buffering\Callback::do($callback); $option .= '}'; return $option; } }