protected function gotNewerRevision(Repository $repository, Record $record) { if ($record->getID() != null && $record->getRevision() != null) { $records = $this->getRecords($repository); if (isset($records[$record->getID()])) { /** @var Record $effectiveRecord */ $effectiveRecord = $records[$record->getID()]; if ($effectiveRecord->getRevision() > $record->getRevision()) { return true; } } } return false; }