@@ 32-41 (lines=10) @@ | ||
29 | /** |
|
30 | * @return AsyncRouter |
|
31 | */ |
|
32 | public function getRouter() : AsyncRouter |
|
33 | { |
|
34 | if ($this->router) { |
|
35 | return $this->router; |
|
36 | } |
|
37 | ||
38 | $this->router = new AsyncRouter($this, $this); |
|
39 | ||
40 | return $this->router; |
|
41 | } |
|
42 | ||
43 | /** |
|
44 | * @param AsyncRouter $router |
@@ 29-38 (lines=10) @@ | ||
26 | /** |
|
27 | * @return Router |
|
28 | */ |
|
29 | public function getRouter() : Router |
|
30 | { |
|
31 | if ($this->router) { |
|
32 | return $this->router; |
|
33 | } |
|
34 | ||
35 | $this->router = new Router($this, $this); |
|
36 | ||
37 | return $this->router; |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param Router $router |