public function __toString() { if (!$this->date instanceof DateTime) { return ''; } return $this->date->format($this->stringFormat); }