bnomei/kirby-blueprints

View on GitHub
classes/Blueprints/Attributes/Accept.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace Bnomei\Blueprints\Attributes;

use Attribute;

#[Attribute(Attribute::TARGET_PROPERTY)]
class Accept extends GenericAttribute
{
    /**
     * If set to all, any type of input is accepted. If set to options only the predefined options are accepted as input.
     */
    public function __construct(
        public string $accept = 'all' // all, options
    ) {}
}