FileAccess Orion

EmptyGuardTrait

Provide a guard method against empty data

Table of Contents

guardAgainstEmpty()  : mixed
Verify that the data is not empty

Methods

guardAgainstEmpty()

Verify that the data is not empty

protected guardAgainstEmpty(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