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

NativeParser   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A parse() 0 6 1
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