bnomei/kirby-blueprints

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

Summary

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

namespace Bnomei\Blueprints\Attributes;

use Attribute;

#[Attribute(Attribute::TARGET_PROPERTY)]
class Step extends GenericAttribute
{
    /**
     * Round to the nearest: sub-options for unit (day) and size (1)
     */
    public function __construct(
        public array $step = [] // ['unit' => 'd', 'size' => 1]
    ) {}
}