| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class UrlEncodedParser implements BodyParserInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var StreamInterface |
||
| 26 | */ |
||
| 27 | private $stream; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Creates an URL Encoded Body Parser |
||
| 31 | * |
||
| 32 | * @param StreamInterface $stream |
||
| 33 | */ |
||
| 34 | public function __construct(StreamInterface $stream) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Parses the URL-encoded body. |
||
| 41 | * |
||
| 42 | * @return array<string, mixed> |
||
| 43 | * @SuppressWarnings(PHPMD) |
||
| 44 | */ |
||
| 45 | public function parse(): array |
||
| 52 |