bnomei/kirby-blueprints

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Bnomei\Blueprints\Attributes;

use Attribute;

#[Attribute(Attribute::TARGET_PROPERTY)]
class DefaultValue extends GenericAttribute
{
    /**
     * Default value for the field, which will be used when a page/file/user is created
     */
    public function __construct(
        public mixed $default
    ) {}
}