public function getRedirectCode(string $from): int
	{
		foreach ($this->routes['*'] as $name => $route)
		{
			// Named route?
			if ($name === $from || key($route['route']) === $from)
			{
				return $route['redirect'] ?? 0;
			}
		}

		return 0;
	}
public function getRedirectCode(string $from): int
	{
		foreach ($this->routes['*'] as $name => $route)
		{
			// Named route?
			if ($name === $from || key($route['route']) === $from)
			{
				return $route['redirect'] ?? 0;
			}
		}

		return 0;
	}
public function getRedirectCode ( string $ from ) : int { foreach ( $ this -> routes [ '*' ] as $ name => $ route ) { // Named route? if ( $ name === $ from || key ( $ route [ 'route' ] ) === $ from ) { return $ route [ 'redirect' ] ?? 0 ; } } return 0 ; }
Grabs the HTTP status code from a redirecting Route.

@param string $from

@return integer
Grabs the HTTP status code from a redirecting Route .