Static guard helper class
Bridges the gap for allowing refactoring until traits can be used by default.
deprecated |
---|
guardAgainstEmpty(mixed $data, string $dataName, string $exceptionClass)
mixed
the data to verify
string
the data name
string
FQCN for the exception
\Exception |
---|
guardAgainstNull(mixed $data, string $dataName, string $exceptionClass)
mixed
the data to verify
string
the data name
string
FQCN for the exception
\Exception |
---|
guardForArrayOrTraversable(mixed $data, string $dataName, string $exceptionClass)
mixed
the data to verify
string
the data name
string
FQCN for the exception
\Exception |
---|
DEFAULT_EXCEPTION_CLASS