public function addParameter($name, $required = false, $description = '', $default = null)
    {
        $this->parameters[$name] = [
            'name'        => $name,
            'required'    => $required,
            'description' => $description,
            'default'     => $default,
            'value'       => null
        ];

        return $this;
    }
public function addParameter($name, $required = false, $description = '', $default = null)
    {
        $this->parameters[$name] = [
            'name'        => $name,
            'required'    => $required,
            'description' => $description,
            'default'     => $default,
            'value'       => null
        ];

        return $this;
    }
public function addParameter ( $ name , $ required = false , $ description = '' , $ default = null ) { $ this -> parameters [ $ name ] = [ 'name' => $ name , 'required' => $ required , 'description' => $ description , 'default' => $ default , 'value' => null ] ; return $ this ; }
Adds a parameter to the definition of the Task

@param string $name        Name of the task parameter
@param bool   $required    If true, task parameter is required
@param string $description Description of the task parameter
@param mixed  $default     Default value of the task parameter, null by default

@return mixed
Adds a parameter to the definition of the Task