src/SMS/OutGoingSMS.php
public function getGroup(int $index): Group
    {
        if ($index >= count($this->groups)) {
            throw new \UndefinedOffsetException();
        }
        return $this->groups[$index];
    }
public function getGroup(int $index): Group
    {
        if ($index >= count($this->groups)) {
            throw new \UndefinedOffsetException();
        }
        return $this->groups[$index];
    }
public function getGroup ( int $ index ) : Group { if ( $ index >= count ( $ this -> groups ) ) { throw new \ UndefinedOffsetException ( ) ; } return $ this -> groups [ $ index ] ; }
Returns the group in the given index.
@param integer $index The index being requested.
@return Group
@throws \UndefinedOffsetException Thrown when the index requested does not exist.
Returns the group in the given index .