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)
mixedthe data to verify
stringthe data name
stringFQCN for the exception
\Exception |
|---|
guardAgainstNull(mixed $data, string $dataName, string $exceptionClass)
mixedthe data to verify
stringthe data name
stringFQCN for the exception
\Exception |
|---|
guardForArrayOrTraversable(mixed $data, string $dataName, string $exceptionClass)
mixedthe data to verify
stringthe data name
stringFQCN for the exception
\Exception |
|---|
DEFAULT_EXCEPTION_CLASS