FileAccess Orion

NullGuardTrait

Provide a guard method against null data

Table of Contents

guardAgainstNull()  : mixed
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 = 'Zend\Stdlib\Exception\InvalidArgumentException' ]) : mixed
Parameters
$data : mixed

the data to verify

$dataName : string = 'Argument'

the data name

$exceptionClass : string = 'Zend\Stdlib\Exception\InvalidArgumentException'

FQCN for the exception

Tags
throws
Exception
Return values
mixed

Search results