Symfony\Component\HttpFoundation\Cookie::getExpiresTime PHP Метод

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

Gets the time the cookie expires.
public getExpiresTime ( ) : integer
Результат integer
    public function getExpiresTime()
    {
        return $this->expire;
    }

Usage Example

Пример #1
0
 public function testGetExpiresTimeWithStringValue()
 {
     $value = '+1 day';
     $cookie = new Cookie('foo', 'bar', $value);
     $expire = strtotime($value);
     $this->assertEquals($expire, $cookie->getExpiresTime(), '->getExpiresTime() returns the expire date');
 }
All Usage Examples Of Symfony\Component\HttpFoundation\Cookie::getExpiresTime