$openPhpTag
$openPhpTag :
__construct(\Phug\Compiler\Event\CompileEvent $compileEvent, string $output)
OutputEvent constructor.
\Phug\Compiler\Event\CompileEvent | $compileEvent | |
string | $output |
getCompileEvent() : \Phug\Compiler\Event\CompileEvent
hasNamespaceStatement(string $namespaceStatement = '', string $afterCode = '') : boolean
Check if the output contains a namespace statement at the beginning.
string | $namespaceStatement | Variable passed by reference that receives the namespace statement if present, or an empty string else. |
string | $afterCode | Variable passed by reference that receives the rest of the output (all the output if no namespace statement present). |
true if a namespace statement if present, false else.