View\Compiler: add @php and @endphp

This commit is contained in:
Visman 2023-10-29 20:31:00 +07:00
parent d64b016637
commit 1d917f0151

View file

@ -505,4 +505,20 @@ EOD;
{
return "<?php break; ?>";
}
/**
* @php
*/
protected function compilePhp(): string
{
return "<?php";
}
/**
* @endphp
*/
protected function compileEndphp(): string
{
return " ?>";
}
}