phplrt/phplrt

View on GitHub
libs/compiler/src/Printer/Value/RawValue.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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;
    }
}