Total Complexity | 6 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class QueryStringValueWrapper extends Base |
||
6 | { |
||
7 | |||
8 | private $queryArray = []; |
||
9 | |||
10 | public function process() |
||
11 | { |
||
12 | $this->initWrapper($this->setLocalName()); |
||
13 | |||
14 | $this->getQueryString(); |
||
15 | |||
16 | list($key, $value) = array_pad(explode('|', $this->getReference()), 2, null); |
||
17 | |||
18 | if (isset($this->queryArray[$key])) { |
||
19 | if ($this->queryArray[$key] == $value) { |
||
20 | $this->setScore($this->getRealScore()); |
||
21 | |||
22 | } |
||
23 | } |
||
24 | $this->setResult(); |
||
25 | } |
||
26 | |||
27 | private function setLocalName() |
||
28 | { |
||
29 | $name = str_replace(__NAMESPACE__ . '\\', '', __CLASS__); |
||
30 | return str_replace('Wrapper', '', $name); |
||
31 | } |
||
32 | |||
33 | |||
34 | private function getQueryString() |
||
38 | } |
||
39 | } |
||
40 | |||
41 | } |