bnomei/kirby-blueprints

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

Summary

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

namespace Bnomei\Blueprints\Attributes;

use Attribute;

#[Attribute(Attribute::TARGET_PROPERTY)]
class MaxLength extends GenericAttribute
{
    /**
     * Maximum number of allowed characters
     */
    public function __construct(
        public int $maxlength
    ) {}
}