public function setVariables(array $variables = []): View
    {
        $this->variables = array_merge($this->variables, $variables);

        return $this;
    }
public function setVariables(array $variables = []): View
    {
        $this->variables = array_merge($this->variables, $variables);

        return $this;
    }
public function setVariables ( array $ variables = [ ] ) : View { $ this -> variables = array_merge ( $ this -> variables , $ variables ) ; return $ this ; }
Set the variables.

@param array $variables [optional] The variables to set

@return \Valkyrja\View\View
Set the variables .