| 1 | <?php |
||
| 7 | final class NativeRenderer implements QueryStringRendererInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var int |
||
| 11 | */ |
||
| 12 | private $encoding; |
||
| 13 | |||
| 14 | protected function __construct(int $encoding) |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @return NativeRenderer |
||
| 21 | */ |
||
| 22 | public static function rfc1738(): self |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return NativeRenderer |
||
| 29 | */ |
||
| 30 | public static function rfc3986(): self |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param int $encoding |
||
| 37 | * @return NativeRenderer |
||
| 38 | */ |
||
| 39 | public function withEncoding(int $encoding): self |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @inheritDoc |
||
| 50 | */ |
||
| 51 | public function render(QueryString $queryString): string |
||
| 60 | } |
||
| 61 |