protected function assertIsDefined(string $name) : input\Parameter
    {
        /* @var input\Parameter $parameter */
        if (!$parameter = $this->definitions->get($name)) {
            throw new \OutOfBoundsException("The parameter [$name] is not defined.");
        }

        return $parameter;
    }
protected function assertIsDefined(string $name) : input\Parameter
    {
        /* @var input\Parameter $parameter */
        if (!$parameter = $this->definitions->get($name)) {
            throw new \OutOfBoundsException("The parameter [$name] is not defined.");
        }

        return $parameter;
    }
protected function assertIsDefined ( string $ name ) : input \ Parameter { /* @var input\Parameter $parameter */ if ( ! $ parameter = $ this -> definitions -> get ( $ name ) ) { throw new \ OutOfBoundsException ( "The parameter [$name] is not defined." ) ; } return $ parameter ; }
Asserts a Parameter with the given name is defined for this collection and returns it.

@param   string  $name           The name of the Parameter.
@throws  \OutOfBoundsException   When no Parameter with the given name has been defined.
@return  input\Parameter
Asserts a Parameter with the given name is defined for this collection and returns it .