protected function getItems($raw, $class, $attachment)
    {
        if ($class->hasFilter()) {
            $query = $class->getFilter();

            return call_user_func_array($query, [$raw->$attachment()]);
        } else {
            return is_object($raw) ? $raw->$attachment : $raw[$attachment];
        }
    }
protected function getItems($raw, $class, $attachment)
    {
        if ($class->hasFilter()) {
            $query = $class->getFilter();

            return call_user_func_array($query, [$raw->$attachment()]);
        } else {
            return is_object($raw) ? $raw->$attachment : $raw[$attachment];
        }
    }
protected function getItems ( $ raw , $ class , $ attachment ) { if ( $ class -> hasFilter ( ) ) { $ query = $ class -> getFilter ( ) ; return call_user_func_array ( $ query , [ $ raw -> $ attachment ( ) ] ) ; } else { return is_object ( $ raw ) ? $ raw -> $ attachment : $ raw [ $ attachment ] ; } }
Get the items to be refined from the raw object.

@param mixed  $raw
@param mixed  $class
@param string $attachment
@return mixed
Get the items to be refined from the raw object .