Path: blob/master/src/applications/maniphest/command/ManiphestCloseEmailCommand.php
12256 views
<?php12final class ManiphestCloseEmailCommand3extends ManiphestEmailCommand {45public function getCommand() {6return 'close';7}89public function getCommandSummary() {10return pht(11'Close a task. This changes the task status to the default closed '.12'status. For a more powerful (but less concise) way to change task '.13'statuses, see `%s`.',14'!status');15}1617public function buildTransactions(18PhabricatorUser $viewer,19PhabricatorApplicationTransactionInterface $object,20PhabricatorMetaMTAReceivedMail $mail,21$command,22array $argv) {23$xactions = array();2425$xactions[] = $object->getApplicationTransactionTemplate()26->setTransactionType(ManiphestTaskStatusTransaction::TRANSACTIONTYPE)27->setNewValue(ManiphestTaskStatus::getDefaultClosedStatus());2829return $xactions;30}3132}333435