public function __toString() { if ($this->time === null) { return ''; } $dateTime = new DateTime("@{$this->time}"); return $dateTime->format($this->stringFormat); }