Completed
Push — master ( 53dd23...58e367 )
by BENOIT
01:13
created

NativeParser::parse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace BenTools\QueryString\Parser;
4
5
class NativeParser implements QueryStringParserInterface
6
{
7
    /**
8
     * @inheritDoc
9
     */
10
    public function parse(string $queryString): array
11
    {
12
        $params = [];
13
        parse_str(ltrim($queryString, '?'), $params);
14
        return $params;
15
    }
16
}
17