src/mako/http/routing/Router.php
public function registerConstraint(string $name, string $constraint): Router
	{
		$this->constraints[$name] = $constraint;

		return $this;
	}
public function registerConstraint(string $name, string $constraint): Router
	{
		$this->constraints[$name] = $constraint;

		return $this;
	}
public function registerConstraint ( string $ name , string $ constraint ) : Router { $ this -> constraints [ $ name ] = $ constraint ; return $ this ; }
Registers constraint.

@param  string                    $name       Constraint name
@param  string                    $constraint Constraint class name
@return \mako\http\routing\Router
Registers constraint .