Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialTransaction.php
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | final class DifferentialTransaction | ||||
public function getApplicationTransactionType() { | public function getApplicationTransactionType() { | ||||
return DifferentialRevisionPHIDType::TYPECONST; | return DifferentialRevisionPHIDType::TYPECONST; | ||||
} | } | ||||
public function getApplicationTransactionCommentObject() { | public function getApplicationTransactionCommentObject() { | ||||
return new DifferentialTransactionComment(); | return new DifferentialTransactionComment(); | ||||
} | } | ||||
public function getApplicationTransactionViewObject() { | |||||
return new DifferentialTransactionView(); | |||||
} | |||||
public function shouldHide() { | public function shouldHide() { | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case DifferentialRevisionRequestReviewTransaction::TRANSACTIONTYPE: | case DifferentialRevisionRequestReviewTransaction::TRANSACTIONTYPE: | ||||
// Don't hide the initial "X requested review: ..." transaction from | // Don't hide the initial "X requested review: ..." transaction from | ||||
// mail or feed even when it occurs during creation. We need this | // mail or feed even when it occurs during creation. We need this | ||||
▲ Show 20 Lines • Show All 507 Lines • Show Last 20 Lines |