public function __construct($pattern, $paths = null, $httpMethod = null) { $this->_pattern = $pattern; $this->_compiledPattern = $this->_compilePattern($pattern); $this->_paths = self::getRoutePaths($paths); $this->_httpMethod = $httpMethod; }