src/mako/view/View.php
public function assign(string $name, $value): View
	{
		$this->variables[$name] = $value;

		return $this;
	}
public function assign(string $name, $value): View
	{
		$this->variables[$name] = $value;

		return $this;
	}
public function assign ( string $ name , $ value ) : View { $ this -> variables [ $ name ] = $ value ; return $ this ; }
Assign a local view variable.

@param  string          $name  Variable name
@param  mixed           $value View variable
@return \mako\view\View
Assign a local view variable .