Differential D17115 Diff 41172 src/applications/differential/xaction/DifferentialRevisionResignTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/xaction/DifferentialRevisionResignTransaction.php
Show All 16 Lines | final class DifferentialRevisionResignTransaction | ||||
public function getIcon() { | public function getIcon() { | ||||
return 'fa-flag'; | return 'fa-flag'; | ||||
} | } | ||||
public function getColor() { | public function getColor() { | ||||
return 'orange'; | return 'orange'; | ||||
} | } | ||||
protected function getRevisionActionOrder() { | |||||
return 700; | |||||
} | |||||
public function generateOldValue($object) { | public function generateOldValue($object) { | ||||
$actor = $this->getActor(); | $actor = $this->getActor(); | ||||
return !$this->isViewerAnyReviewer($object, $actor); | return !$this->isViewerAnyReviewer($object, $actor); | ||||
} | } | ||||
public function applyExternalEffects($object, $value) { | public function applyExternalEffects($object, $value) { | ||||
$status = DifferentialReviewerStatus::STATUS_RESIGNED; | $status = DifferentialReviewerStatus::STATUS_RESIGNED; | ||||
$actor = $this->getActor(); | $actor = $this->getActor(); | ||||
Show All 34 Lines |