setAge() public method

Set the age of the response
public setAge ( integer $age ) : void
$age integer
return void
Example #1
0
 /**
  * Test Age
  */
 public function testAge()
 {
     $this->cacheControl->setAge(3600);
     $this->assertEquals(3600, $this->cacheControl->getAge());
     $this->assertEquals(3600, $this->response->getHeader('Age'));
 }