| 1 | <?php  | 
            ||
| 8 | final class RoutingResult implements RoutingResultInterface  | 
            ||
| 9 | { | 
            ||
| 10 | /** @var bool */  | 
            ||
| 11 | private $isSuccess;  | 
            ||
| 12 | |||
| 13 | /** @var RequestHandlerInterface|null */  | 
            ||
| 14 | private $matchedHandler;  | 
            ||
| 15 | |||
| 16 | /** @var array */  | 
            ||
| 17 | private $matchedParams;  | 
            ||
| 18 | |||
| 19 | /** @var RoutingErrorInterface|null */  | 
            ||
| 20 | private $error;  | 
            ||
| 21 | |||
| 22 | 4 | private function __construct(  | 
            |
| 33 | |||
| 34 | 4 | public function isSuccess(): bool  | 
            |
| 38 | |||
| 39 | 3 | public function getMatchedHandler(): ?RequestHandlerInterface  | 
            |
| 43 | |||
| 44 | 3 | public function getMatchedParams(): array  | 
            |
| 48 | |||
| 49 | 3 | public function getError(): ?RoutingErrorInterface  | 
            |
| 53 | |||
| 54 | 2 | public static function success(RequestHandlerInterface $matchedHandler, array $matchedParams): self  | 
            |
| 58 | |||
| 59 | 2 | public static function failure(RoutingErrorInterface $error): self  | 
            |
| 63 | }  | 
            ||
| 64 |