src/Router.php
public function getMatchType($type, $default = null)
	{
		if (isset($this->matchTypes[$type])) {
			return $this->matchTypes[$type];
		} else if ($default !== null) {
			return $default;
		} else {
			throw new MatchTypeNotFoundExeption("Unknow match type");
		}
	}
public function getMatchType($type, $default = null)
	{
		if (isset($this->matchTypes[$type])) {
			return $this->matchTypes[$type];
		} else if ($default !== null) {
			return $default;
		} else {
			throw new MatchTypeNotFoundExeption("Unknow match type");
		}
	}
public function getMatchType ( $ type , $ default = null ) { if ( isset ( $ this -> matchTypes [ $ type ] ) ) { return $ this -> matchTypes [ $ type ] ; } else if ( $ default !== null ) { return $ default ; } else { throw new MatchTypeNotFoundExeption ( "Unknow match type" ) ; } }
Return regex if type is defined otherwise,
returns default value.

@method getMatchType
@throws MatchTypeNotFoundExeption If regex of type wasn"t found

@param  string       $type    Type of allowed regex
@param  string       $default Default return value if type is not found

@return string       Found Regex
Return regex if type is defined otherwise returns default value .