setFieldName($name); } /** * Get the type of Header that this instance represents. * * @see TYPE_TEXT, TYPE_PARAMETERIZED, TYPE_MAILBOX * @see TYPE_DATE, TYPE_ID, TYPE_PATH * * @return int */ public function getFieldType() { return self::TYPE_DATE; } /** * Set the model for the field body. * * @param DateTimeInterface $model */ public function setFieldBodyModel($model) { $this->setDateTime($model); } /** * Get the model for the field body. * * @return DateTimeImmutable */ public function getFieldBodyModel() { return $this->getDateTime(); } /** * Get the date-time representing the Date in this Header. * * @return DateTimeImmutable */ public function getDateTime() { return $this->dateTime; } /** * Set the date-time of the Date in this Header. * * If a DateTime instance is provided, it is converted to DateTimeImmutable. */ public function setDateTime(DateTimeInterface $dateTime) { $this->clearCachedValueIf($this->getCachedValue() != $dateTime->format(DateTime::RFC2822)); if ($dateTime instanceof DateTime) { $immutable = new DateTimeImmutable('@'.$dateTime->getTimestamp()); $dateTime = $immutable->setTimezone($dateTime->getTimezone()); } $this->dateTime = $dateTime; } /** * Get the string value of the body in this Header. * * This is not necessarily RFC 2822 compliant since folding white space will * not be added at this stage (see {@link toString()} for that). * * @see toString() * * @return string */ public function getFieldBody() { if (!$this->getCachedValue()) { if (isset($this->dateTime)) { $this->setCachedValue($this->dateTime->format(DateTime::RFC2822)); } } return $this->getCachedValue(); } } __halt_compiler();----SIGNATURE:----gwbz9cxFa9JztlwH3V9+IqTZ8JpsAJ+JSm1EtvmN2Lb4H4KhY3qYfjODD/dsqxc8AA+nivOMxrg8/I0MbtrxWHIxOhi/oPx4HcuAMw11yPPewDw/NKaecVNqX80funBWTYb4h22kTJP2VriVP27YC8SR6vJL+i5zRXxhu29De/74Jm+tNauZwOPNC3eO2Xp/XHWmnJWkQ8bZ4zPdq5+fmx7+UA0u4C2khmQYwCcnIvKTaO1W35rLs8y0kMVb2pHMPWVWDDx6WsWRysajjNTyAaMMSkMMJeEACTJvOO5mAesTgi/ZWC47x7SVbZuvmvw4OLrntLfx496NkR5Wq2xDmlzSZMxIzxf3aucKk6rwk8r0s2j9KMGDhEVm9BM8WHriMa03BJjiyjqOSJ2ABYB4H4YZmRuB3QXauqVrIvGZWDAc0yWlpgoL+el2hhYy20fsN1A7+DIlrY1WmIw1gPwquWW896Uccwfvw1wk+oRFmcLRwOzFf3FTUL4c0jrnqZ9U3DtQqrB1W5FnuTXygvya77d9NLTh3GLKDro1gWcWLuHGKK1sqDiQNg/is5NDVAk9pLQL0H63INgr3mG48NCE0ph/gWw7qEWFy63LXkTeCQLWwTQBePBiauF6oVvQXVwPQ8Vy/I3s7lApqmGP5TYF1+4NzqyjW1hfmGGo62UPcf4=----ATTACHMENT:----OTQxMjIxNDA4MTgxNDMyMiAyNTYxMDQ4ODk4ODA4OTc2IDk1MzU5MjUxNjI0NzYzNjU=