Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialDiff.php
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | final class DifferentialDiff | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function generatePHID() { | public function generatePHID() { | ||||
return PhabricatorPHID::generateNewPHID( | return PhabricatorPHID::generateNewPHID( | ||||
DifferentialPHIDTypeDiff::TYPECONST); | DifferentialDiffPHIDType::TYPECONST); | ||||
} | } | ||||
public function addUnsavedChangeset(DifferentialChangeset $changeset) { | public function addUnsavedChangeset(DifferentialChangeset $changeset) { | ||||
if ($this->changesets === null) { | if ($this->changesets === null) { | ||||
$this->changesets = array(); | $this->changesets = array(); | ||||
} | } | ||||
$this->unsavedChangesets[] = $changeset; | $this->unsavedChangesets[] = $changeset; | ||||
$this->changesets[] = $changeset; | $this->changesets[] = $changeset; | ||||
▲ Show 20 Lines • Show All 360 Lines • Show Last 20 Lines |