public function offsetGet($offset)
    {
        if (isset($this->_args[$offset])) {
            if (is_array($this->_args[$offset])) {
                return new AssociativeArray($this->_args[$offset]);
            } else {
                return $this->_args[$offset];
            }
        } else {
            throw new \Exception('Undefined offset \''.$offset.'\'.');
        }
    }
public function offsetGet($offset)
    {
        if (isset($this->_args[$offset])) {
            if (is_array($this->_args[$offset])) {
                return new AssociativeArray($this->_args[$offset]);
            } else {
                return $this->_args[$offset];
            }
        } else {
            throw new \Exception('Undefined offset \''.$offset.'\'.');
        }
    }
public function offsetGet ( $ offset ) { if ( isset ( $ this -> _args [ $ offset ] ) ) { if ( is_array ( $ this -> _args [ $ offset ] ) ) { return new AssociativeArray ( $ this -> _args [ $ offset ] ) ; } else { return $ this -> _args [ $ offset ] ; } } else { throw new \ Exception ( 'Undefined offset \'' . $ offset . '\'.' ) ; } }
Override the offsetGet function to throw
an undefined offset error when a key is
not found.

@param  mixed $offset

@return mixed
@throws \Exception
Override the offsetGet function to throw an undefined offset error when a key is not found .