public static function getRoute($identifier = null) {

		if(null !== $identifier && false === is_string($identifier)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($identifier)), E_USER_ERROR);
		}

		if(null !== $identifier) {

			if(false === static :: routeExists($identifier)) {
				return trigger_error(sprintf('Route identifier "%s" not found in routes.php', $identifier), E_USER_ERROR);
			}

			return static :: $routes[$identifier];
		}

		return static :: $route;
	}
public static function getRoute($identifier = null) {

		if(null !== $identifier && false === is_string($identifier)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($identifier)), E_USER_ERROR);
		}

		if(null !== $identifier) {

			if(false === static :: routeExists($identifier)) {
				return trigger_error(sprintf('Route identifier "%s" not found in routes.php', $identifier), E_USER_ERROR);
			}

			return static :: $routes[$identifier];
		}

		return static :: $route;
	}
public static function getRoute ( $ identifier = null ) { if ( null !== $ identifier && false === is_string ( $ identifier ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type string, "%s" given' , __METHOD__ , gettype ( $ identifier ) ) , E_USER_ERROR ) ; } if ( null !== $ identifier ) { if ( false === static :: routeExists ( $ identifier ) ) { return trigger_error ( sprintf ( 'Route identifier "%s" not found in routes.php' , $ identifier ) , E_USER_ERROR ) ; } return static :: $ routes [ $ identifier ] ; } return static :: $ route ; }
Gets the current route or a route based on identifier
@param null|string $identifier
@return sFire\Routing\Extend\Method
Gets the current route or a route based on identifier