libs/compiler/src/Printer/Value/RawValue.php
<?php
declare(strict_types=1);
namespace Phplrt\Compiler\Printer\Value;
use Phplrt\Compiler\Printer\PrintableValueInterface;
use Phplrt\Compiler\Printer\PrinterInterface;
final class RawValue implements PrintableValueInterface
{
public function __construct(
private readonly string $code,
) {}
public function print(PrinterInterface $printer): string
{
return $this->code;
}
}