src/php/CTXParser/Stack.php
public function offsetGet($key)
    {
        $key = $this->count - $key - 1;
        if (!isset($this->data[$key])) {
            throw new \OutOfRangeException("Out of range.");
        }

        return $this->data[$key];
    }
public function offsetGet($key)
    {
        $key = $this->count - $key - 1;
        if (!isset($this->data[$key])) {
            throw new \OutOfRangeException("Out of range.");
        }

        return $this->data[$key];
    }
public function offsetGet ( $ key ) { $ key = $ this -> count - $ key - 1 ; if ( ! isset ( $ this -> data [ $ key ] ) ) { throw new \ OutOfRangeException ( "Out of range." ) ; } return $ this -> data [ $ key ] ; }
Returns the element with the given offset.

This method is part of the ArrayAccess interface to allow access to the
data of this object as if it was an array.

@param string $key
@return mixed

@throws ezcBasePropertyNotFoundException
If no dataset with identifier exists
Returns the element with the given offset .