for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace devtoolboxuk\cerberus\Wrappers;
class QueryStringKeyWrapper extends Base
{
private $queryArray = [];
public function process()
$this->initWrapper($this->setLocalName());
$this->getQueryString();
list($key) = array_pad(explode('|', $this->getReference()), 1, null);
if (isset($this->queryArray[$key])) {
$this->setScore($this->getRealScore());
}
$this->setResult();
private function setLocalName()
$name = str_replace(__NAMESPACE__ . '\\', '', __CLASS__);
return str_replace('Wrapper', '', $name);
private function getQueryString()
if (isset($_SERVER["QUERY_STRING"])) {
parse_str($_SERVER["QUERY_STRING"], $this->queryArray);