Skip to content

Commit eac2684

Browse files
committed
docs: fix the type.
1 parent 637b17d commit eac2684

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

system/Router/RouteCollectionInterface.php

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ interface RouteCollectionInterface
3030
*
3131
* @param array|Closure|string $to
3232
* @param array $options
33+
*
34+
* @return RouteCollectionInterface
3335
*/
34-
public function add(string $from, $to, ?array $options = null): self;
36+
public function add(string $from, $to, ?array $options = null);
3537

3638
/**
3739
* Registers a new constraint with the system. Constraints are used
@@ -43,35 +45,45 @@ public function add(string $from, $to, ?array $options = null): self;
4345
*
4446
* @param array|string $placeholder
4547
* @param string $pattern
48+
*
49+
* @return RouteCollectionInterface
4650
*/
47-
public function addPlaceholder($placeholder, ?string $pattern = null): self;
51+
public function addPlaceholder($placeholder, ?string $pattern = null);
4852

4953
/**
5054
* Sets the default namespace to use for Controllers when no other
5155
* namespace has been specified.
56+
*
57+
* @return RouteCollectionInterface
5258
*/
53-
public function setDefaultNamespace(string $value): self;
59+
public function setDefaultNamespace(string $value);
5460

5561
/**
5662
* Sets the default controller to use when no other controller has been
5763
* specified.
64+
*
65+
* @return RouteCollectionInterface
5866
*/
59-
public function setDefaultController(string $value): self;
67+
public function setDefaultController(string $value);
6068

6169
/**
6270
* Sets the default method to call on the controller when no other
6371
* method has been set in the route.
72+
*
73+
* @return RouteCollectionInterface
6474
*/
65-
public function setDefaultMethod(string $value): self;
75+
public function setDefaultMethod(string $value);
6676

6777
/**
6878
* Tells the system whether to convert dashes in URI strings into
6979
* underscores. In some search engines, including Google, dashes
7080
* create more meaning and make it easier for the search engine to
7181
* find words and meaning in the URI for better SEO. But it
7282
* doesn't work well with PHP method names....
83+
*
84+
* @return RouteCollectionInterface
7385
*/
74-
public function setTranslateURIDashes(bool $value): self;
86+
public function setTranslateURIDashes(bool $value);
7587

7688
/**
7789
* If TRUE, the system will attempt to match the URI against

0 commit comments

Comments
 (0)