| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | trait NullableTrait |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var bool |
||
| 14 | */ |
||
| 15 | protected $strict = false; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var bool |
||
| 19 | */ |
||
| 20 | protected $canBeNull = true; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | public function isStrict(): bool |
||
| 26 | { |
||
| 27 | return $this->strict; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param bool $strict |
||
| 32 | * @return self |
||
| 33 | */ |
||
| 34 | public function setStrict(bool $strict): self |
||
| 35 | { |
||
| 36 | $this->strict = $strict; |
||
| 37 | return $this; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return bool |
||
| 42 | */ |
||
| 43 | public function isCanBeNull(): bool |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param bool $canBeNull |
||
| 50 | * @return self |
||
| 51 | */ |
||
| 52 | public function setCanBeNull(bool $canBeNull): self |
||
| 56 | } |
||
| 57 | |||
| 58 | |||
| 59 | } |