public function addSerializerGroup($group)
    {
        if (is_array($group)) {
            $this->serializerGroups = array_merge(
                $this->serializerGroups,
                $group
            );
        } else {
            $this->serializerGroups[$group] = $group;
        }
    }
public function addSerializerGroup($group)
    {
        if (is_array($group)) {
            $this->serializerGroups = array_merge(
                $this->serializerGroups,
                $group
            );
        } else {
            $this->serializerGroups[$group] = $group;
        }
    }
public function addSerializerGroup ( $ group ) { if ( is_array ( $ group ) ) { $ this -> serializerGroups = array_merge ( $ this -> serializerGroups , $ group ) ; } else { $ this -> serializerGroups [ $ group ] = $ group ; } }
Add a serializer group for API formatting.

@param $group
Add a serializer group for API formatting .