Remove product literal strings in "pht()", part 6
[phabricator.git] / src / applications / countdown / storage / PhabricatorCountdownTransaction.php
blob78e0a54cede154513cb4cb6e5e9f65ed5ba58b2a
1 <?php
3 final class PhabricatorCountdownTransaction
4 extends PhabricatorModularTransaction {
6 const MAILTAG_DETAILS = 'countdown:details';
7 const MAILTAG_COMMENT = 'countdown:comment';
8 const MAILTAG_OTHER = 'countdown:other';
10 public function getApplicationName() {
11 return 'countdown';
14 public function getApplicationTransactionType() {
15 return PhabricatorCountdownCountdownPHIDType::TYPECONST;
18 public function getApplicationTransactionCommentObject() {
19 return new PhabricatorCountdownTransactionComment();
22 public function getBaseTransactionClass() {
23 return 'PhabricatorCountdownTransactionType';
26 public function getMailTags() {
27 $tags = parent::getMailTags();
29 switch ($this->getTransactionType()) {
30 case PhabricatorTransactions::TYPE_COMMENT:
31 $tags[] = self::MAILTAG_COMMENT;
32 break;
33 case PhabricatorCountdownTitleTransaction::TRANSACTIONTYPE:
34 case PhabricatorCountdownEpochTransaction::TRANSACTIONTYPE:
35 case PhabricatorCountdownDescriptionTransaction::TRANSACTIONTYPE:
36 $tags[] = self::MAILTAG_DETAILS;
37 break;
38 default:
39 $tags[] = self::MAILTAG_OTHER;
40 break;
43 return $tags;