public function addParameter(string $name, $value)
    {
        if (!is_scalar($value)) {
            throw new InvalidParameterTypeException(__CLASS__, __METHOD__, 1, 'scalar', gettype($value));
        }

        $this->parameters->set($name, $value);

        return $this;
    }