Total Complexity | 1 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class FeatureDefaults extends DefaultsAbstract |
||
6 | { |
||
7 | /** |
||
8 | * The values that should be cast before sanitization is run. |
||
9 | * This is done before $sanitize and $enums. |
||
10 | */ |
||
11 | public array $casts = [ |
||
12 | 'premium' => 'bool', |
||
13 | ]; |
||
14 | |||
15 | /** |
||
16 | * The values that should be sanitized. |
||
17 | * This is done after $casts and before $enums. |
||
18 | */ |
||
19 | public array $sanitize = [ |
||
20 | 'feature' => 'text', |
||
21 | 'tooltip' => 'text', |
||
22 | ]; |
||
23 | |||
24 | protected function defaults(): array |
||
33 |