public function getDate() { $this->checkState(); if ($this->type !== PropertyType::DATE) { return $this->valueConverter->convertType($this->value, PropertyType::DATE, $this->type); } return $this->value; }