Differential D10583 Diff 25460 src/applications/harbormaster/storage/configuration/HarbormasterBuildPlanTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/storage/configuration/HarbormasterBuildPlanTransaction.php
<?php | <?php | ||||
final class HarbormasterBuildPlanTransaction | final class HarbormasterBuildPlanTransaction | ||||
extends PhabricatorApplicationTransaction { | extends PhabricatorApplicationTransaction { | ||||
const TYPE_NAME = 'harbormaster:name'; | const TYPE_NAME = 'harbormaster:name'; | ||||
const TYPE_STATUS = 'harbormaster:status'; | const TYPE_STATUS = 'harbormaster:status'; | ||||
public function getApplicationName() { | public function getApplicationName() { | ||||
return 'harbormaster'; | return 'harbormaster'; | ||||
} | } | ||||
public function getApplicationTransactionType() { | public function getApplicationTransactionType() { | ||||
return HarbormasterBuildPlanPHIDType::TYPECONST; | return HarbormasterBuildPlanPHIDType::TYPECONST; | ||||
} | } | ||||
public function getApplicationTransactionCommentObject() { | |||||
return new HarbormasterBuildPlanTransactionComment(); | |||||
} | |||||
public function getIcon() { | public function getIcon() { | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case self::TYPE_NAME: | case self::TYPE_NAME: | ||||
if ($old === null) { | if ($old === null) { | ||||
return 'fa-plus'; | return 'fa-plus'; | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |