bnomei/kirby-blueprints

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

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Bnomei\Blueprints\Attributes;

use Attribute;

#[Attribute(Attribute::TARGET_PROPERTY)]
class Store extends GenericAttribute
{
    /**
     * Whether to store UUID or ID in the content file of the model
     */
    public function __construct(
        public string $store = 'uuid' // uuid, id
    ) {}
}