Skip to content

Commit d38ea80

Browse files
committed
update docs
1 parent 5f623d6 commit d38ea80

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/Router.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ class Router
3131
/**
3232
* List of defined routes
3333
*
34-
* @var Route[]string
34+
* @var Route[]
3535
*/
3636
private $routes = [];
3737

3838
/**
39-
* List of defined names mapped to related routes
39+
* List of named routes
4040
*
41-
* @var Route[]string
41+
* @var Route[]|array[string]Route
4242
*/
4343
private $names = [];
4444

4545
/**
46-
* List of defined route parameters and their regex patterns
46+
* List of defined route parameters
4747
*
48-
* @var string[]string
48+
* @var string[]|array[string]string
4949
*/
5050
private $parameters = [];
5151

@@ -55,7 +55,7 @@ class Router
5555
private $request;
5656

5757
/**
58-
* The publisher that is going to publish controller output
58+
* The publisher that is going to publish outputs of controllers
5959
*
6060
* @var PublisherInterface
6161
*/
@@ -69,28 +69,28 @@ class Router
6969
private $name = null;
7070

7171
/**
72-
* Middleware (single or multiple) for upcoming routes
72+
* Middleware (one or more) for next routes
7373
*
74-
* @var array
74+
* @var string[]|callable[]
7575
*/
7676
private $middleware = [];
7777

7878
/**
79-
* Prefix of URIs of upcoming routes
79+
* URI prefix for next routes
8080
*
8181
* @var string
8282
*/
8383
private $prefix;
8484

8585
/**
86-
* Controller namespace prefix for upcoming routes
86+
* Controller namespace prefix for next routes
8787
*
8888
* @var string
8989
*/
9090
private $namespace;
9191

9292
/**
93-
* Domain for upcoming routes
93+
* Domain for next routes
9494
*
9595
* @var string|null
9696
*/
@@ -106,13 +106,13 @@ class Router
106106
/**
107107
* Router constructor.
108108
*
109-
* @param string $prefix
110-
* @param string $namespace
109+
* @param string $uriPrefix
110+
* @param string $namespacePrefix
111111
*/
112-
public function __construct(string $prefix = '', string $namespace = '')
112+
public function __construct(string $uriPrefix = '', string $namespacePrefix = '')
113113
{
114-
$this->prefix = $prefix;
115-
$this->namespace = $namespace;
114+
$this->prefix = $uriPrefix;
115+
$this->namespace = $namespacePrefix;
116116
}
117117

118118
/**

0 commit comments

Comments
 (0)