Bluz\Http\CacheControl::setAge PHP Метод

setAge() публичный Метод

Set the age of the response
public setAge ( integer $age ) : void
$age integer
Результат void
    public function setAge($age)
    {
        $this->response->setHeader('Age', $age);
    }

Usage 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'));
 }