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:----Y7K7OCQPV2FHM+wT6YHKRbVNONHZT0u4jOApsYow2AaWwRqqPAkmwTppBF2WA1tgAxVxfctWibkZSUNwOFYKkCRMFS7V01wEaDwAEE52iI9FdkZsj2CZYdSVH3BEW5zIxfp3JOHqsvCStfyPWQnQjULW92Wa5kFfkkAZS5BHDomnvQTEge0JuZ5NnzTrumOSSdEmqeKc4OgzGyZ+y7AGu3Cqjly3kjxczPoUfkqHczNoKOjiQ3BKxC6H5LTAS32X67mUIjylA1ZDmA34zoVCPyeqt7VpD3IOnxN0TNbcYcMtLipURBQ3/TDkRjVGEI/i2KBOdkuPnvEZpr7nz9K0aMHJdyrQVljBPlnlz44iIaWiLyEyUzhUoYUt6Z9UG6gQI3Cb9VJyL06TCxqr+tIQehVejhEMByRJstgbfvmeHZ+KrmJHJWZwfo2ltcnR5tyFyhw+wDO/paOhgcQnZs8C1g3l/5bycu2+9svvaluf8gxCsig8XS0/MGjOmjp4yduZV4MIQNZdHJks3j0CA4jAGJWRmn7pS9Jow2oPeI7vDLX+gZYOCkEsrILJ94i4zyP5u4MW/fWeKNe9lDj1f1EInGpZxzFi9Z8UkdVou4wH8sgFBXY+NQPjPYxzqkDQb3gzRQMjp5/d1R6arGM0+Rr1zaTC4NolI69Vkv9W2P25Azg=----ATTACHMENT:----NTQ0NTg1Mzc5OTkzMTUwNSA0MzkzOTM4MTEzMTgyODc3IDE2OTc5OTM1Nzg3NTU5NDk=