src/Resource.php
protected function mergeAttributes(array $attributes)
    {
        foreach ($this->merged as $resource) {
            $attributes = array_replace_recursive($attributes, $resource->getAttributes());
        }

        return $attributes;
    }
protected function mergeAttributes(array $attributes)
    {
        foreach ($this->merged as $resource) {
            $attributes = array_replace_recursive($attributes, $resource->getAttributes());
        }

        return $attributes;
    }
protected function mergeAttributes ( array $ attributes ) { foreach ( $ this -> merged as $ resource ) { $ attributes = array_replace_recursive ( $ attributes , $ resource -> getAttributes ( ) ) ; } return $ attributes ; }
Merge the attributes of merged resources into an array of attributes.

@param array $attributes

@return array
Merge the attributes of merged resources into an array of attributes .