public function getForWebserviceExport($document = null, $params = []) { if ($this->date) { return $this->date->getTimestamp(); } else { return null; } }