| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 11 | final class TestUrlGenerator implements UrlGeneratorInterface |
||
| 12 | { |
||
| 13 | private const ROUTES = [ |
||
| 14 | 'account:overview' => 'account/{account}/', |
||
| 15 | 'proposals:open' => 'match/proposals/open/{account}/', |
||
| 16 | 'proposals:accepted' => 'match/proposals/accepted/{account}/{?since}', |
||
| 17 | 'proposals:successful' => 'match/proposals/successful/{account}/{?since}', |
||
| 18 | 'proposals:propose' => 'match/propose/{from}/vs/{to}/', |
||
| 19 | ]; |
||
| 20 | private $prefix; |
||
| 21 | |||
| 22 | public function __construct(string $prefix) |
||
| 25 | } |
||
| 26 | |||
| 27 | public function generate( |
||
| 41 |