NullGuardTrait
Provide a guard method against null data
Table of Contents
Methods
- guardAgainstNull() : void
- Verify that the data is not null
Methods
guardAgainstNull()
Verify that the data is not null
protected
guardAgainstNull(mixed $data[, string $dataName = 'Argument' ][, string $exceptionClass = InvalidArgumentException::class ]) : void
Parameters
- $data : mixed
-
the data to verify
- $dataName : string = 'Argument'
-
the data name
- $exceptionClass : string = InvalidArgumentException::class
-
FQCN for the exception