public function getSummary() { $txt = ''; if ($this->venueHistoryModel->getIsNew()) { $txt .= 'New! ' . "\n"; } if ($this->venueHistoryModel->isAnyChangeFlagsUnknown()) { $txt .= $this->venueHistoryModel->getDescription(); } else { if ($this->venueHistoryModel->getTitleChanged()) { $txt .= 'Title Changed. ' . "\n"; } if ($this->venueHistoryModel->getDescriptionChanged()) { $txt .= 'Description Changed. ' . "\n"; } if ($this->venueHistoryModel->getAddressChanged()) { $txt .= 'Address Changed. ' . "\n"; } if ($this->venueHistoryModel->getAddressCodeChanged()) { $txt .= 'Address Code Changed. ' . "\n"; } if ($this->venueHistoryModel->getLatChanged() || $this->venueHistoryModel->getLngChanged()) { $txt .= 'Position on Map Changed. ' . "\n"; } if ($this->venueHistoryModel->getAreaIdChanged()) { $txt .= 'Area Changed. ' . "\n"; } if ($this->venueHistoryModel->getCountryIdChanged()) { $txt .= 'Country Changed. ' . "\n"; } if ($this->venueHistoryModel->getIsDeletedChanged()) { $txt .= 'Deleted Changed: ' . ($this->venueHistoryModel->getIsDeleted() ? "Deleted" : "Restored") . "\n\n"; } } return $txt; }