IsListyObject::checkList()
Since v1.9.0
Description
IsListyObject::checkList()
- is every item in the list an object that's a valid PHP list?
use GanbaroDigital\MissingBits\TypeChecks\IsListyObject;
bool IsListyObject::checkList(mixed $list);
Parameters
IsListyObject::checkList()
takes one parameter:
mixed $list
- the value to inspect
Return Value
IsListyObject::checkList()
returns a boolean:
true
if every value in$list
is a listy objectfalse
otherwise
Throws
IsListyObject::checkList()
throws an InvalidArgumentException
if:
$list
is not a valid list (seeIsList::check()
for details)
Works With
IsListyObject::checkList()
is supported on these versions of PHP:
PHP Version | Works? |
---|---|
5.5 | Yes |
5.6 | Yes |
7.0 | Yes |
HHVM | Yes |