bnomei/kirby-blueprints

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

Summary

Maintainability
A
0 mins
Test Coverage
<?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
    ) {}
}