<?php

declare(strict_types=1);

namespace Apexl\Io\Tests\Infrastructure;

use Apexl\Io\Entity;

/**
 * An entity that declares an ordinary column read-only, so the enforcement can be tested
 * without a table carrying the framework's own created/modified stamps.
 *
 * @property int $id
 * @property string $name
 * @property string $note
 */
final class ReadOnlyFieldTestEntity extends Entity
{
    public static ?string $tableName = null;

    protected const array READ_ONLY_FIELDS = [...parent::READ_ONLY_FIELDS, 'name'];

    public function getTableName(): string
    {
        return self::$tableName;
    }
}
