Page MenuHomePhorge

function assert_instances_of($arr, $class)
libphutil Technical Documentation (Core Utilities)

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$className of the class or 'array' to check arrays.
Return
arrayReturns passed array.