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:----DbPQcWaR7raocz8CzDhe/Bf5oJdZCb2e+4W9mAy9TOlVoDKg76fINM5DpqA/2qZ5VLUCsGMBXfEk/Wcdu6WVw45ng6ko4OcT2Lk5CBqZciVw0h1/gATipppmNt4Xb0ZH4ZiYnZn03l03UsTRmvfzFGZtYneaEQlk135xUbLCHsbqrO9GlB+ghQM6/rP9DUo5ozKBYhs8UfDL9B8syrY52V8Byr+jBe4rgxBZPVZlOM1Dtvu5e5Z/DVGbVXiBw5jdHai21qHj1IzvTCP7BgaixnzoTXx4g0sYHCsUp9qt0dxt2ABBXzFZekg5r047Y2okxAmZEkj7ehaw7Dw+eXKt3RpeVStEiWDMn64gXA7ucbwrbruN7cZOzQliwl3zH+a7I6lnkAU4hn1NpGBwEaB08CustvCgHm7DGgJLmFOiAr7UUw4DO/gGdRDONbqIapHdi+fRbRG9bWeBYqHwV9IZfVb1IoFrVI3WdqiYnvPKMU7Gpi1hsPj9xcXvU+wySEwsBRs6OIq/FNId9h1c2+whunjh5D8ME9mqMQKAfnDmYTJrWhZbpHdmsbmF6BMcQkXd5lAd5xiulX49VMeoE4uCC6tdx3K9xMHrRR8CV0+yL0HMjDd8IKPADx+z8JD/v2a8gOLb9X9nDDX4e7abtV/XOBZrQrHQ0H5V0ALRbfTSzHY=----ATTACHMENT:----ODIxMjEyNTI0NDE4Mjc3NiA3NDA3MDY2MzQyNTk5NjMwIDI1NjQ0NzMzMDk0NTY0NTQ=