<?php

/**
 * DO NOT EDIT!
 * This file was automatically generated via bin/generate-validator-spec.php.
 */

namespace AmpProject\Validator\Spec\AttributeList;

use AmpProject\Html\Attribute;
use AmpProject\Protocol;
use AmpProject\Validator\Spec\AttributeList;
use AmpProject\Validator\Spec\Identifiable;
use AmpProject\Validator\Spec\SpecRule;

/**
 * Attribute list class SvgXlinkAttributes.
 *
 * @package ampproject/amp-toolbox.
 *
 * @property-read array $xlink:actuate
 * @property-read array $xlink:arcrole
 * @property-read array $xlink:href
 * @property-read array $xlink:role
 * @property-read array $xlink:show
 * @property-read array $xlink:title
 * @property-read array $xlink:type
 */
final class SvgXlinkAttributes extends AttributeList implements Identifiable
{
    /**
     * ID of the attribute list.
     *
     * @var string
     */
    const ID = 'svg-xlink-attributes';

    /**
     * Array of attributes.
     *
     * @var array<array>
     */
    const ATTRIBUTES = [
        Attribute::XLINK_ACTUATE => [],
        Attribute::XLINK_ARCROLE => [],
        Attribute::XLINK_HREF => [
            SpecRule::ALTERNATIVE_NAMES => [
                Attribute::HREF,
            ],
            SpecRule::VALUE_URL => [
                SpecRule::PROTOCOL => [
                    Protocol::HTTP,
                    Protocol::HTTPS,
                ],
                SpecRule::ALLOW_EMPTY => false,
            ],
        ],
        Attribute::XLINK_ROLE => [],
        Attribute::XLINK_SHOW => [],
        Attribute::XLINK_TITLE => [],
        Attribute::XLINK_TYPE => [],
    ];
}
