Differential D17115 Diff 41172 src/applications/differential/xaction/DifferentialRevisionAcceptTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/xaction/DifferentialRevisionAcceptTransaction.php
Show All 16 Lines | final class DifferentialRevisionAcceptTransaction | ||||
public function getIcon() { | public function getIcon() { | ||||
return 'fa-check-circle-o'; | return 'fa-check-circle-o'; | ||||
} | } | ||||
public function getColor() { | public function getColor() { | ||||
return 'green'; | return 'green'; | ||||
} | } | ||||
protected function getRevisionActionOrder() { | |||||
return 500; | |||||
} | |||||
public function generateOldValue($object) { | public function generateOldValue($object) { | ||||
$actor = $this->getActor(); | $actor = $this->getActor(); | ||||
return $this->isViewerAcceptingReviewer($object, $actor); | return $this->isViewerAcceptingReviewer($object, $actor); | ||||
} | } | ||||
public function applyExternalEffects($object, $value) { | public function applyExternalEffects($object, $value) { | ||||
$status = DifferentialReviewerStatus::STATUS_ACCEPTED; | $status = DifferentialReviewerStatus::STATUS_ACCEPTED; | ||||
$actor = $this->getActor(); | $actor = $this->getActor(); | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |