public function getDataFromResource($data, $object = null, $params = []) { if ($data) { return $this->getDateFromTimestamp($data); } }