setPublic() public method

A response flagged as "public" may be cached by any cache, even if it normally wouldn't be cacheable in a shared cache.
public setPublic ( ) : Response
return Response This response, for method chaining
 /**
  * RFC 2616 / 14.9.1
  *
  * @test
  */
 public function setPublicSetsTheRespectiveCacheControlDirective()
 {
     $response = new Response();
     $response->setNow(new \DateTime());
     $response->setPublic();
     $this->assertEquals('public', $response->getHeader('Cache-Control'));
 }