@@ -44,6 +44,9 @@ |
||
44 | 44 | return $this->{$name}; |
45 | 45 | } |
46 | 46 | |
47 | + /** |
|
48 | + * @param string $name |
|
49 | + */ |
|
47 | 50 | private function hasCollection($name) |
48 | 51 | { |
49 | 52 | return property_exists($this, $name) && is_a($this->{$name}, CollectionInterface::class); |
@@ -16,12 +16,13 @@ |
||
16 | 16 | interface RouterInterface |
17 | 17 | { |
18 | 18 | /** |
19 | - * @return string; |
|
19 | + * @return string |
|
20 | 20 | */ |
21 | 21 | public function getUri(); |
22 | 22 | |
23 | 23 | /** |
24 | 24 | * @param RealmInterface $realm |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function addRealm(Contract\RealmInterface $realm); |
27 | 28 |
@@ -66,6 +66,6 @@ |
||
66 | 66 | } |
67 | 67 | } |
68 | 68 | |
69 | -Router::setConnectionFactory(function (Contract\RouterInterface $router, Contract\RealmInterface $realm) { |
|
69 | +Router::setConnectionFactory(function(Contract\RouterInterface $router, Contract\RealmInterface $realm) { |
|
70 | 70 | return new Connection($router, $realm); |
71 | 71 | }); |