bnomei/kirby-blueprints

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Bnomei\Blueprints\Attributes;

use Attribute;

#[Attribute(Attribute::TARGET_PROPERTY)]
class Placeholder extends GenericAttribute
{
    /**
     * Optional placeholder value that will be shown when the field is empty
     */
    public function __construct(
        public string $placeholder
    ) {}
}