function assert_instances_of($arr, $class)Arcanist Technical Documentation ()
function assert_instances_of($arr, $class)
Arcanist Technical Documentation ()
Checks if all values of array are instances of the passed class. Throws InvalidArgumentException if it isn't true for any value.
Parameters
array | $arr | |
string | $class | Name of the class or 'array' to check arrays. |
Return
array | Returns passed array. |
- Defined
- src/utils/utils.php:626