Display/Menu/Action.php
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;
    }
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;
    }
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 ; }
Adds a parameter

@param string $name
@param mixed  $value

@return $this

@throws \Thuata\ComponentBundle\Exception\InvalidParameterTypeException
Adds a parameter