HumHub Documentation (unofficial)

EmptyGuardTrait

Provide a guard method against empty data

Table of Contents

Methods

guardAgainstEmpty()  : void
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 = InvalidArgumentException::class ]) : void
Parameters
$data : mixed

the data to verify

$dataName : string = 'Argument'

the data name

$exceptionClass : string = InvalidArgumentException::class

FQCN for the exception

Tags
throws
Exception

        
On this page

Search results