1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-08-07 00:46:51 +02:00

Add PHPDocs for class properties.

This commit is contained in:
Danny van Kooten
2015-11-03 07:37:53 +07:00
parent c3f7a669a8
commit 97b2ba7daf

View File

@@ -2,9 +2,24 @@
class AltoRouter {
/**
* @var array Array of all routes (incl. named routes).
*/
protected $routes = array();
/**
* @var array Array of all named routes.
*/
protected $namedRoutes = array();
/**
* @var string Can be used to ignore leading part of the Request URL (if main file lives in subdirectory of host)
*/
protected $basePath = '';
/**
* @var array Array of default match types (regex helpers)
*/
protected $matchTypes = array(
'i' => '[0-9]++',
'a' => '[0-9A-Za-z]++',