/** * @param DateTime|int|string $datetimeValue * @return Value * @throws \UnexpectedValueException */ public function setDatetimeValue($datetimeValue) { $this->datetimeValue = DateTimeUtility::parse($datetimeValue); return $this; }
/** * @param \DateTime|int|string|null $fileModifiedAt * @return Document * @throws \UnexpectedValueException */ public function setFileModifiedAt($fileModifiedAt) { $this->fileModifiedAt = DateTimeUtility::parse($fileModifiedAt); return $this; }
/** * @param DateTime $updatedAt * * @throws UnexpectedValueException * * @return DataInterface */ public function setUpdatedAt($updatedAt) { $this->updatedAt = DateTimeUtility::parse($updatedAt, false); return $this; }