Changeset View
Changeset View
Standalone View
Standalone View
src/applications/release/storage/ReleaseChangeRequestTransaction.php
- This file was added.
| <?php | |||||
| final class ReleaseChangeRequestTransaction | |||||
| extends PhabricatorModularTransaction { | |||||
| const MAILTAG_OTHER = 'release-change-content'; | |||||
| public function getApplicationName() { | |||||
| return 'release'; | |||||
| } | |||||
| public function getApplicationTransactionType() { | |||||
| return ReleaseChangeRequestPHIDType::TYPECONST; | |||||
| } | |||||
| public function getBaseTransactionClass() { | |||||
| return 'ReleaseChangeRequestTransactionType'; | |||||
| } | |||||
| public function getApplicationTransactionCommentObject() { | |||||
| return new ReleaseReleaseTransactionComment(); | |||||
| } | |||||
| public function getMailTags() { | |||||
| $tags = parent::getMailTags(); | |||||
| switch ($this->getTransactionType()) { | |||||
| default: | |||||
| $tags[] = self::MAILTAG_OTHER; | |||||
| break; | |||||
| } | |||||
| return $tags; | |||||
| } | |||||
| } | |||||