bnomei/kirby-blueprints

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

Summary

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

namespace Bnomei\Blueprints\Attributes;

use Attribute;

#[Attribute(Attribute::TARGET_PROPERTY)]
class Reset extends GenericAttribute
{
    /**
     * A toggle can be deactivated on click. If reset is false deactivating a toggle is no longer possible.
     */
    public function __construct(
        public bool $reset = true
    ) {}
}