protected function dataUpdated(Stop $o, Stop $n) { $changes = array(); if ($o->getFlipStopTag() != $n->getFlipStopTag()) { $changes["flip stop tag"] = $o->getFlipStopTag() . " | " . $n->getFlipStopTag(); } if ($o->getTitle() != $n->getTitle()) { $changes["title"] = $o->getTitle() . " | " . $n->getTitle(); } if ($o->getLatitude() != $n->getLatitude()) { $changes["latitude"] = $o->getLatitude() . " | " . $n->getLatitude(); } if ($o->getLongitude() != $n->getLongitude()) { $changes["longitude"] = $o->getLongitude() . " | " . $n->getLongitude(); } return $changes; }