@@ -35,12 +35,12 @@ final class RouteTestDefinition
3535 private $ matchRequest ;
3636
3737 /**
38- * @var ? RouteResult
38+ * @var null| RouteResult
3939 */
4040 private $ matchResult ;
4141
4242 /**
43- * @var ? PartialRouteResult
43+ * @var null| PartialRouteResult
4444 */
4545 private $ partialMatchResult ;
4646
@@ -55,12 +55,12 @@ final class RouteTestDefinition
5555 private $ matchOptions = [];
5656
5757 /**
58- * @var ? UriInterface
58+ * @var null| UriInterface
5959 */
6060 private $ assembleWithUri ;
6161
6262 /**
63- * @var ? UriInterface
63+ * @var null| UriInterface
6464 */
6565 private $ assembleResult ;
6666
@@ -74,6 +74,10 @@ final class RouteTestDefinition
7474 */
7575 private $ assembleOptions = [];
7676
77+ /**
78+ * @param ServerRequestInterface|UriInterface $requestOrUriToMatch
79+ * @throws Exception
80+ */
7781 public function __construct (RouteInterface $ route , $ requestOrUriToMatch )
7882 {
7983 $ this ->route = $ route ;
@@ -102,6 +106,9 @@ public function expectMatchResult(RouteResult $result) : self
102106 return $ this ;
103107 }
104108
109+ /**
110+ * @throws Exception
111+ */
105112 public function getExpectedMatchResult () : RouteResult
106113 {
107114 if (! $ this ->matchResult ) {
@@ -112,7 +119,9 @@ public function getExpectedMatchResult() : RouteResult
112119 return $ this ->matchResult ;
113120 }
114121
115-
122+ /**
123+ * @throws Exception
124+ */
116125 public function expectPartialMatchResult (PartialRouteResult $ result ) : self
117126 {
118127 if (! $ this ->route instanceof PartialRouteInterface) {
@@ -123,6 +132,9 @@ public function expectPartialMatchResult(PartialRouteResult $result) : self
123132 return $ this ;
124133 }
125134
135+ /**
136+ * @throws Exception
137+ */
126138 public function getExpectedPartialMatchResult () : PartialRouteResult
127139 {
128140 if (! $ this ->route instanceof PartialRouteInterface) {
0 commit comments