public function getValidationPropertyValue() { if (($text = $this->getText()) === '') { return ''; } $date = $this->getTimeStamp(); return $date == null ? $text : $date; }