src/mako/http/routing/Route.php
public function constraint($constraint): Route
	{
		$this->constraints = array_merge($this->constraints, (array) $constraint);

		return $this;
	}
public function constraint($constraint): Route
	{
		$this->constraints = array_merge($this->constraints, (array) $constraint);

		return $this;
	}
public function constraint ( $ constraint ) : Route { $ this -> constraints = array_merge ( $ this -> constraints , ( array ) $ constraint ) ; return $ this ; }
Adds a set of constraints.

@param  array|string             $constraint Constraint
@return \mako\http\routing\Route
Adds a set of constraints .