public function getGroupInformationContainer(array $acceptedResponses, array $groups) {
        if (count($acceptedResponses) > 0) {
            foreach($groups as $index => $group) {
                if (isset($acceptedResponses[$index])) {
                    $this->groupInformationContainer[$group->name] = $acceptedResponses[$index];
                }
            }

            return $this->groupInformationContainer;
        } else {
            return false;
        }
    }
public function getGroupInformationContainer(array $acceptedResponses, array $groups) {
        if (count($acceptedResponses) > 0) {
            foreach($groups as $index => $group) {
                if (isset($acceptedResponses[$index])) {
                    $this->groupInformationContainer[$group->name] = $acceptedResponses[$index];
                }
            }

            return $this->groupInformationContainer;
        } else {
            return false;
        }
    }
public function getGroupInformationContainer ( array $ acceptedResponses , array $ groups ) { if ( count ( $ acceptedResponses ) > 0 ) { foreach ( $ groups as $ index => $ group ) { if ( isset ( $ acceptedResponses [ $ index ] ) ) { $ this -> groupInformationContainer [ $ group -> name ] = $ acceptedResponses [ $ index ] ; } } return $ this -> groupInformationContainer ; } else { return false ; } }
Returns Either False or a container.

The container will contain 'groupName' => 'responseJSON'.

@param array $acceptedResponses - use `getAcceptedResponses()`
@param array $groups these should be the groups you passed in for this request.
Returns Either False or a container .