<?php

declare(strict_types=1);

namespace CpCreation\AltchaBundle\Model;

final readonly class ScopeDefinition
{
    public function __construct(
        public string $name,
        public string $label,
    ) {
    }

    /** @return array{name: string, label: string} */
    public function toArray(): array
    {
        return ['name' => $this->name, 'label' => $this->label];
    }
}
