public static function objectsDiff(array $array1, array $array2)
    {
        $callback = [ (new SetTool())->setComparator(new ObjectComparator), 'diff' ];
        return call_user_func_array($callback, func_get_args());
    }
public static function objectsDiff(array $array1, array $array2)
    {
        $callback = [ (new SetTool())->setComparator(new ObjectComparator), 'diff' ];
        return call_user_func_array($callback, func_get_args());
    }
public static function objectsDiff ( array $ array1 , array $ array2 ) { $ callback = [ ( new SetTool ( ) ) -> setComparator ( new ObjectComparator ) , 'diff' ] ; return call_user_func_array ( $ callback , func_get_args ( ) ) ; }
Computes the difference of arrays that contain only objects

Returns an array containing all the entries from array1 that are not present in any of the other arrays.
Entries are considered equal if they refer to the same object instance.

@param object[] $array1
@param object[] $array2
@param object[] $...
@return object[]
Computes the difference of arrays that contain only objects