public function getParameter($key)
    {
        if ($this->hasParameter($key)) {
            return $this->parameters[$key];
        }

        throw new \InvalidArgumentException(
            sprintf('Wrong parameter key "%s" , invalid returned the key', $key)
        );
    }
public function getParameter($key)
    {
        if ($this->hasParameter($key)) {
            return $this->parameters[$key];
        }

        throw new \InvalidArgumentException(
            sprintf('Wrong parameter key "%s" , invalid returned the key', $key)
        );
    }
public function getParameter ( $ key ) { if ( $ this -> hasParameter ( $ key ) ) { return $ this -> parameters [ $ key ] ; } throw new \ InvalidArgumentException ( sprintf ( 'Wrong parameter key "%s" , invalid returned the key' , $ key ) ) ; }
Get the parameter of object event

@param  string|array $key
@return string|array mixed

@throws \InvalidArgumentException
Get the parameter of object event