Zend\Stdlib\Guard\GuardUtils::guardForArrayOrTraversable
Verifies that the data is an array or Traversable
Signature
public function guardForArrayOrTraversable(mixed
$data,
[string
$dataName = 'Argument',
[string
$exceptionClass = self::DEFAULT_EXCEPTION_CLASS]] )
Parameters
$data
— mixed- the data to verify
$dataName
— string- the data name
$exceptionClass
— string- FQCN for the exception