Falseclock /
service-layer
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * @author Nurlan Mukhanov <[email protected]> |
||
| 4 | * @copyright 2022 Nurlan Mukhanov |
||
| 5 | * @license https://en.wikipedia.org/wiki/MIT_License MIT License |
||
| 6 | * @link https://github.com/Falseclock/service-layer |
||
| 7 | */ |
||
| 8 | |||
| 9 | declare(strict_types=1); |
||
| 10 | |||
| 11 | namespace Falseclock\Service\Validation\Validators; |
||
| 12 | |||
| 13 | use Falseclock\Service\Validation\ValidatorImpl; |
||
| 14 | |||
| 15 | class IsNotNull extends ValidatorImpl |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @param null $value |
||
|
0 ignored issues
–
show
Documentation
Bug
introduced
by
Loading history...
|
|||
| 19 | * @return bool |
||
| 20 | */ |
||
| 21 | public function check($value = null): bool |
||
| 22 | { |
||
| 23 | return !is_null($value); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |