| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait OptionalTrait |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * The Optional. |
||
| 16 | * |
||
| 17 | * @var bool |
||
| 18 | */ |
||
| 19 | protected bool $Optional; |
||
| 20 | |||
| 21 | |||
| 22 | /** |
||
| 23 | * Collect the value of the Optional-property |
||
| 24 | * |
||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | public function getOptional(): bool |
||
| 30 | } |
||
| 31 | |||
| 32 | |||
| 33 | /** |
||
| 34 | * Set the value of the Optional-property |
||
| 35 | * |
||
| 36 | * @param bool $Optional |
||
| 37 | */ |
||
| 38 | protected function setOptional(?bool $Optional): void |
||
| 43 |