public function offsetGet($key)
    {
        if (!array_key_exists($key, $this->data)) {
            throw new \RuntimeException(sprintf('Identifier "%s" does not exist in the context.', $key));
        }

        return $this->data[$key];
    }
public function offsetGet($key)
    {
        if (!array_key_exists($key, $this->data)) {
            throw new \RuntimeException(sprintf('Identifier "%s" does not exist in the context.', $key));
        }

        return $this->data[$key];
    }
public function offsetGet ( $ key ) { if ( ! array_key_exists ( $ key , $ this -> data ) ) { throw new \ RuntimeException ( sprintf ( 'Identifier "%s" does not exist in the context.' , $ key ) ) ; } return $ this -> data [ $ key ] ; }
Get a data.

@param string $key Key.

@return mixed
Get a data .