public function getFrame(int $index): StackFrame
    {
        if ($index < 0 || !isset($this->frames[$index])) {
            throw new Exception('Frame index is out of range');
        }

        return $this->frames[$index];
    }
public function getFrame(int $index): StackFrame
    {
        if ($index < 0 || !isset($this->frames[$index])) {
            throw new Exception('Frame index is out of range');
        }

        return $this->frames[$index];
    }
public function getFrame ( int $ index ) : StackFrame { if ( $ index < 0 || ! isset ( $ this -> frames [ $ index ] ) ) { throw new Exception ( 'Frame index is out of range' ) ; } return $ this -> frames [ $ index ] ; }
Returns a StackFrame at a particular index.

@param int $index

@return StackFrame

@throws Exception When index is out of range
Returns a StackFrame at a particular index .