private function updateDiffFromDict(DifferentialDiff $diff, $dict) { $diff->setSourcePath(idx($dict, 'sourcePath'))->setSourceMachine(idx($dict, 'sourceMachine'))->setBranch(idx($dict, 'branch'))->setCreationMethod(idx($dict, 'creationMethod'))->setAuthorPHID(idx($dict, 'authorPHID', $this->getActor()))->setBookmark(idx($dict, 'bookmark'))->setRepositoryPHID(idx($dict, 'repositoryPHID'))->setRepositoryUUID(idx($dict, 'repositoryUUID'))->setSourceControlSystem(idx($dict, 'sourceControlSystem'))->setSourceControlPath(idx($dict, 'sourceControlPath'))->setSourceControlBaseRevision(idx($dict, 'sourceControlBaseRevision'))->setLintStatus(idx($dict, 'lintStatus'))->setUnitStatus(idx($dict, 'unitStatus')); return $diff; }