public function createRequestsForGroups(array $groups) {
        foreach($groups as $group) {
            array_push($this->createdRequests, new Request('GET', $group->types->href));
        }
    }
public function createRequestsForGroups(array $groups) {
        foreach($groups as $group) {
            array_push($this->createdRequests, new Request('GET', $group->types->href));
        }
    }
public function createRequestsForGroups ( array $ groups ) { foreach ( $ groups as $ group ) { array_push ( $ this -> createdRequests , new Request ( 'GET' , $ group -> types -> href ) ) ; } }
Creates a set of requests.

@param array $groups - Use the `fetchGroupPages()` method.
Creates a set of requests .