From 97b2ba7daf6662e1f7131c7c37d32e3570de48b0 Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Tue, 3 Nov 2015 07:37:53 +0700 Subject: [PATCH] Add PHPDocs for class properties. --- AltoRouter.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/AltoRouter.php b/AltoRouter.php index dee3ba2..08871dc 100644 --- a/AltoRouter.php +++ b/AltoRouter.php @@ -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]++',