getCacheObject() protected méthode

protected getCacheObject ( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response ) : CacheEntry | null
$request Psr\Http\Message\RequestInterface
$response Psr\Http\Message\ResponseInterface
Résultat Kevinrob\GuzzleCache\CacheEntry | null entry to save, null if can't cache it
 /**
  * {@inheritdoc}
  */
 protected function getCacheObject(RequestInterface $request, ResponseInterface $response)
 {
     $cacheControl = new KeyValueHttpHeader($response->getHeader('Cache-Control'));
     if ($cacheControl->has('private')) {
         return;
     }
     return parent::getCacheObject($request, $response);
 }