| Total Complexity | 5 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class QueryStringKey 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) = array_pad(explode('|', $this->getReference()), 1, null); |
||
| 17 | |||
| 18 | if (isset($this->queryArray[$key])) { |
||
| 19 | $this->setScore($this->getRealScore()); |
||
| 20 | $this->setResult(); |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 24 | private function setLocalName() |
||
| 25 | { |
||
| 26 | $name = str_replace(__NAMESPACE__ . '\\', '', __CLASS__); |
||
| 27 | return str_replace('Wrapper', '', $name); |
||
| 28 | } |
||
| 29 | |||
| 30 | private function getQueryString() |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | } |