bnomei/kirby-blueprints

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Bnomei\Blueprints\Attributes;

use Attribute;

#[Attribute(Attribute::TARGET_PROPERTY)]
class MinDate extends GenericAttribute
{
    /**
     * Earliest date, which can be selected/saved (Y-m-d)
     */
    public function __construct(
        public string $min //  (Y-m-d)
    ) {}
}