public function getQuery($name = null, $default = null)
    {
        if ($name === null) {
            return $this->query;
        }

        return Hash::get($this->query, $name, $default);
    }
public function getQuery($name = null, $default = null)
    {
        if ($name === null) {
            return $this->query;
        }

        return Hash::get($this->query, $name, $default);
    }
public function getQuery ( $ name = null , $ default = null ) { if ( $ name === null ) { return $ this -> query ; } return Hash :: get ( $ this -> query , $ name , $ default ) ; }
Read a specific query value or dotted path.

Developers are encouraged to use getQueryParams() when possible as it is PSR-7 compliant, and this method
is not.

### PSR-7 Alternative

```
$value = Hash::get($request->getQueryParams(), 'Post.id', null);
```

@param string|null $name The name or dotted path to the query param or null to read all.
@param mixed $default The default value if the named parameter is not set, and $name is not null.
@return null|string|array Query data.
@see ServerRequest::getQueryParams()
Read a specific query value or dotted path .