1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-12 16:46:15 +01:00
phorge-phorge/src/applications/maniphest/command/ManiphestCloseEmailCommand.php

30 lines
663 B
PHP
Raw Normal View History

<?php
final class ManiphestCloseEmailCommand
extends ManiphestEmailCommand {
public function getCommand() {
return 'close';
}
public function getCommandSummary() {
return pht('Close a task.');
}
public function buildTransactions(
PhabricatorUser $viewer,
PhabricatorApplicationTransactionInterface $object,
PhabricatorMetaMTAReceivedMail $mail,
$command,
array $argv) {
$xactions = array();
$xactions[] = $object->getApplicationTransactionTemplate()
->setTransactionType(ManiphestTransaction::TYPE_STATUS)
->setNewValue(ManiphestTaskStatus::getDefaultClosedStatus());
return $xactions;
}
}