<?php

namespace Solspace\Freeform\Attributes\Property;

use Solspace\Freeform\Library\Serialization\Normalizers\CustomNormalizerInterface;

#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::IS_REPEATABLE)]
class Flag implements CustomNormalizerInterface
{
    public const PRO = 'pro';
    public const LOCKED = 'locked';

    public function __construct(public string $name) {}

    public function normalize(): string
    {
        return $this->name;
    }
}
