Symfony\Component\HttpFoundation\Response::getLastModified PHP Метод

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

Returns the Last-Modified HTTP header as a DateTime instance.
public getLastModified ( ) : DateTime | null
Результат DateTime | null A DateTime instance or null if the header does not exist
    public function getLastModified()
    {
        return $this->headers->getDate('Last-Modified');
    }

Usage Example

Пример #1
0
 /**
  * @return \DateTime
  */
 protected function getLastModified()
 {
     if ($this->response === null) {
         return null;
     }
     return $this->response->getLastModified();
 }
All Usage Examples Of Symfony\Component\HttpFoundation\Response::getLastModified