ManaPHP\Mvc\Router\Route::__construct PHP Метод

__construct() публичный Метод

\ManaPHP\Mvc\Router\Route constructor
public __construct ( string $pattern, string | array $paths = null, string $httpMethod = null )
$pattern string
$paths string | array
$httpMethod string
    public function __construct($pattern, $paths = null, $httpMethod = null)
    {
        $this->_pattern = $pattern;
        $this->_compiledPattern = $this->_compilePattern($pattern);
        $this->_paths = self::getRoutePaths($paths);
        $this->_httpMethod = $httpMethod;
    }