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