Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
StoreOptions
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace Apie\Core\Attributes;
4
5use Attribute;
6
7/**
8 * This attribute is for finetuning the generated database schema.
9 *
10 * - mutableListField: stores/restores mutability state of a list.
11 * - alwaysMixedData: if true, the data is always stored in the special mixed data table.
12 * - noStorage: ignore property
13 */
14#[Attribute(Attribute::TARGET_PROPERTY)]
15class StoreOptions
16{
17    public function __construct(
18        public readonly bool $mutableListField = false,
19        public readonly bool $alwaysMixedData = false,
20        public readonly bool $noStorage = false,
21    ) {
22    }
23}