public function set(string $name, $value = null): self
    {
        $this->variables[$name] = $value;
        return $this;
    }
public function set(string $name, $value = null): self
    {
        $this->variables[$name] = $value;
        return $this;
    }
public function set ( string $ name , $ value = null ) : self { $ this -> variables [ $ name ] = $ value ; return $ this ; }
Assign a variable to template

@param string $name
@param mixed $value
@return self
Assign a variable to template