Provide a guard method against null data

package Default

 Methods

Verify that the data is not null

guardAgainstNull(mixed $data, string $dataName = 'Argument', string $exceptionClass = 'Zend\Stdlib\Exception\InvalidArgumentException'

Parameters

$data

mixed

the data to verify

$dataName

string

the data name

$exceptionClass

string

FQCN for the exception

Exceptions

\Exception