src/mako/http/routing/Router.php
protected function constraintsAreSatisfied(Route $route): bool
	{
		foreach(array_merge($this->globalConstraints, $route->getConstraints()) as $constraint)
		{
			if($this->constraintFactory($constraint)->isSatisfied() === false)
			{
				return false;
			}
		}

		return true;
	}
protected function constraintsAreSatisfied(Route $route): bool
	{
		foreach(array_merge($this->globalConstraints, $route->getConstraints()) as $constraint)
		{
			if($this->constraintFactory($constraint)->isSatisfied() === false)
			{
				return false;
			}
		}

		return true;
	}
protected function constraintsAreSatisfied ( Route $ route ) : bool { foreach ( array_merge ( $ this -> globalConstraints , $ route -> getConstraints ( ) ) as $ constraint ) { if ( $ this -> constraintFactory ( $ constraint ) -> isSatisfied ( ) === false ) { return false ; } } return true ; }
Returns true if all the route constraints are satisfied and false if not.

@param  \mako\http\routing\Route $route Route
@return bool
Returns true if all the route constraints are satisfied and false if not .