phplrt/phplrt

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Phplrt\Compiler\Printer\Value;

use Phplrt\Compiler\Printer\PrintableValueInterface;

abstract class Reference implements PrintableValueInterface
{
    /**
     * @param non-empty-string $reference
     * @param non-empty-string|null $alias
     */
    public function __construct(
        protected readonly string $reference,
        protected readonly ?string $alias = null,
    ) {}
}