We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | final class Nullable extends AbstractWrapper |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | 17 | public function assert($input): void |
|
| 27 | { |
||
| 28 | 17 | if (null === $input) { |
|
| 29 | 1 | return; |
|
| 30 | } |
||
| 31 | |||
| 32 | 16 | parent::assert($input); |
|
| 33 | 16 | } |
|
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | 17 | public function check($input): void |
|
| 45 | 16 | } |
|
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | 17 | public function isValid($input): bool |
|
| 59 |