/**
  * @param string $rawValue
  * @return \DateTime[]
  * @throws DateTimeParseException
  */
 private function parseDateTimePartsFromRawValue($rawValue)
 {
     list($leftValue, $rightValue) = $this->parseDateTimeStringFromRawValue($rawValue);
     $left = $this->dateTimeConverter->parse($leftValue);
     $right = $this->dateTimeConverter->parse($rightValue);
     if ($right === NULL || $left === NULL) {
         throw new DateTimeParseException('One part of the interval is missing.');
     }
     return [$left, $right];
 }
Exemplo n.º 2
0
 /**
  * @return \DateTime|NULL
  */
 public function getValue()
 {
     return $this->dateConverter->parse(parent::getValue());
 }