/** * Determine changes between two directions of the same route with the same tag * * @param Direction $o * @param Direction $n * @return Array - of changes */ protected function dataUpdated(Direction $o, Direction $n) { $changes = array(); if ($o->getName() != $n->getName()) { $changes["name"] = $o->getName() . " | " . $n->getName(); } if ($o->getTitle() != $n->getTitle()) { $changes["title"] = $o->getTitle() . " | " . $n->getTitle(); } if ($o->getUseForUi() != $n->getUseForUi()) { $changes["useForUI"] = $o->getUseForUi() . " | " . $n->getUseForUi(); } return $changes; }