<?php

namespace App\Modules\Customization\CustomFields\Support;

final class CustomFieldType
{
    public const TEXT = 'text';

    public const TEXTAREA = 'textarea';

    public const NUMBER = 'number';

    public const EMAIL = 'email';

    public const PHONE = 'phone';

    public const SELECT = 'select';

    public const RADIO = 'radio';

    public const CHECKBOX = 'checkbox';

    public const DATE = 'date';

    public const FILE = 'file';

    public const URL = 'url';

    /**
     * @return list<string>
     */
    public static function all(): array
    {
        return [
            self::TEXT,
            self::TEXTAREA,
            self::NUMBER,
            self::EMAIL,
            self::PHONE,
            self::SELECT,
            self::RADIO,
            self::CHECKBOX,
            self::DATE,
            self::FILE,
            self::URL,
        ];
    }
}
