public function getArgument($key)
    {
        if (! array_key_exists($key, $this->arguments)) {
            throw new ErrorException('Undefined index: '.$key);
        }

        return $this->arguments[$key];
    }