public function setExpires($date): void
    {
        if ($date instanceof \DateTime) {
            $date = clone $date;
        } else {
            $date = new \DateTime($date);
        }

        $date->setTimezone(new \DateTimeZone('UTC'));
        $this->response->setHeader('Expires', $date->format('D, d M Y H:i:s') . ' GMT');
    }
public function setExpires($date): void
    {
        if ($date instanceof \DateTime) {
            $date = clone $date;
        } else {
            $date = new \DateTime($date);
        }

        $date->setTimezone(new \DateTimeZone('UTC'));
        $this->response->setHeader('Expires', $date->format('D, d M Y H:i:s') . ' GMT');
    }
public function setExpires ( $ date ) : void { if ( $ date instanceof \ DateTime ) { $ date = clone $ date ; } else { $ date = new \ DateTime ( $ date ) ; } $ date -> setTimezone ( new \ DateTimeZone ( 'UTC' ) ) ; $ this -> response -> setHeader ( 'Expires' , $ date -> format ( 'D, d M Y H:i:s' ) . ' GMT' ) ; }
Sets the Expires HTTP header with a DateTime instance

@param  \DateTime|string $date A \DateTime instance or date as string

@return void
Sets the Expires HTTP header with a DateTime instance