mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-08-08 09:26:33 +02:00
Add PHPDocs for class properties.
This commit is contained in:
@@ -2,9 +2,24 @@
|
|||||||
|
|
||||||
class AltoRouter {
|
class AltoRouter {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array Array of all routes (incl. named routes).
|
||||||
|
*/
|
||||||
protected $routes = array();
|
protected $routes = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array Array of all named routes.
|
||||||
|
*/
|
||||||
protected $namedRoutes = array();
|
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 = '';
|
protected $basePath = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array Array of default match types (regex helpers)
|
||||||
|
*/
|
||||||
protected $matchTypes = array(
|
protected $matchTypes = array(
|
||||||
'i' => '[0-9]++',
|
'i' => '[0-9]++',
|
||||||
'a' => '[0-9A-Za-z]++',
|
'a' => '[0-9A-Za-z]++',
|
||||||
|
Reference in New Issue
Block a user