Remove product literal strings in "pht()", part 8
[phabricator.git] / src / applications / maniphest / command / ManiphestCloseEmailCommand.php
blobeab01ad615a9be53f99ab75527b159559b3f3086
1 <?php
3 final class ManiphestCloseEmailCommand
4 extends ManiphestEmailCommand {
6 public function getCommand() {
7 return 'close';
10 public function getCommandSummary() {
11 return pht(
12 'Close a task. This changes the task status to the default closed '.
13 'status. For a more powerful (but less concise) way to change task '.
14 'statuses, see `%s`.',
15 '!status');
18 public function buildTransactions(
19 PhabricatorUser $viewer,
20 PhabricatorApplicationTransactionInterface $object,
21 PhabricatorMetaMTAReceivedMail $mail,
22 $command,
23 array $argv) {
24 $xactions = array();
26 $xactions[] = $object->getApplicationTransactionTemplate()
27 ->setTransactionType(ManiphestTaskStatusTransaction::TRANSACTIONTYPE)
28 ->setNewValue(ManiphestTaskStatus::getDefaultClosedStatus());
30 return $xactions;