public function setDataFromResource($data) { if ($data) { $this->setDateFromTimestamp($data); } return $this; }