private function getClientHints(ServerRequestInterface $request)
    {
        if (!empty($this->clientHints)) {
            $hints = [];

            foreach ($this->clientHints as $name) {
                if ($request->hasHeader($name)) {
                    $hints[$name] = $request->getHeaderLine($name);
                }
            }

            return $hints;
        }
    }
private function getClientHints(ServerRequestInterface $request)
    {
        if (!empty($this->clientHints)) {
            $hints = [];

            foreach ($this->clientHints as $name) {
                if ($request->hasHeader($name)) {
                    $hints[$name] = $request->getHeaderLine($name);
                }
            }

            return $hints;
        }
    }
private function getClientHints ( ServerRequestInterface $ request ) { if ( ! empty ( $ this -> clientHints ) ) { $ hints = [ ] ; foreach ( $ this -> clientHints as $ name ) { if ( $ request -> hasHeader ( $ name ) ) { $ hints [ $ name ] = $ request -> getHeaderLine ( $ name ) ; } } return $ hints ; } }
Returns the client hints sent.

@param ServerRequestInterface $request

@return array|null
Returns the client hints sent .