Пример #1
0
 /**
  * @param DateTime|int|string $datetimeValue
  * @return Value
  * @throws \UnexpectedValueException
  */
 public function setDatetimeValue($datetimeValue)
 {
     $this->datetimeValue = DateTimeUtility::parse($datetimeValue);
     return $this;
 }
Пример #2
0
 /**
  * @param \DateTime|int|string|null $fileModifiedAt
  * @return Document
  * @throws \UnexpectedValueException
  */
 public function setFileModifiedAt($fileModifiedAt)
 {
     $this->fileModifiedAt = DateTimeUtility::parse($fileModifiedAt);
     return $this;
 }
Пример #3
0
 /**
  * @param DateTime $updatedAt
  *
  * @throws UnexpectedValueException
  *
  * @return DataInterface
  */
 public function setUpdatedAt($updatedAt)
 {
     $this->updatedAt = DateTimeUtility::parse($updatedAt, false);
     return $this;
 }