Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/storage/NuanceSourceTransaction.php
<?php | <?php | ||||
final class NuanceSourceTransaction | final class NuanceSourceTransaction | ||||
extends NuanceTransaction { | extends NuanceTransaction { | ||||
const TYPE_NAME = 'source.name'; | const TYPE_NAME = 'source.name'; | ||||
const TYPE_DEFAULT_QUEUE = 'source.queue.default'; | const TYPE_DEFAULT_QUEUE = 'source.queue.default'; | ||||
public function getApplicationTransactionType() { | public function getApplicationTransactionType() { | ||||
return NuanceSourcePHIDType::TYPECONST; | return NuanceSourcePHIDType::TYPECONST; | ||||
} | } | ||||
public function getApplicationTransactionCommentObject() { | public function getApplicationTransactionCommentObject() { | ||||
return new NuanceSourceTransactionComment(); | return new NuanceSourceTransactionComment(); | ||||
} | } | ||||
public function getBaseTransactionClass() { | |||||
return 'NuanceSourceTransactionType'; | |||||
} | |||||
public function shouldHide() { | public function shouldHide() { | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
$type = $this->getTransactionType(); | $type = $this->getTransactionType(); | ||||
switch ($type) { | switch ($type) { | ||||
case self::TYPE_DEFAULT_QUEUE: | case self::TYPE_DEFAULT_QUEUE: | ||||
return !$old; | return !$old; | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |