bnomei/kirby-blueprints

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Bnomei\Blueprints\Attributes;

use Attribute;

#[Attribute(Attribute::TARGET_PROPERTY)]
class Multiple extends GenericAttribute
{
    /**
     * If false, only a single one can be selected
     */
    public function __construct(
        public bool $multiple = false
    ) {}
}