Total Complexity | 3 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | trait HasFlags |
||
15 | { |
||
16 | /** |
||
17 | * The default flags. |
||
18 | * |
||
19 | * @var int |
||
20 | */ |
||
21 | protected static $defaultFlags = NONE; |
||
22 | |||
23 | /** |
||
24 | * The actual flags. |
||
25 | * |
||
26 | * @var int |
||
27 | */ |
||
28 | protected $flags; |
||
29 | |||
30 | /** |
||
31 | * Retrieve the default flags |
||
32 | * |
||
33 | * @return int |
||
34 | */ |
||
35 | 192 | public static function getDefaultFlags(): int |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * Retrieve the DTO flags |
||
42 | * |
||
43 | * @return int |
||
44 | */ |
||
45 | 189 | public function getFlags(): int |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * Retrieve the DTO flags excluding the flags for default values |
||
52 | * |
||
53 | * @return int |
||
54 | */ |
||
55 | 12 | protected function getFlagsWithoutDefaults(): int |
|
63 |