Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/maniphest/command/ManiphestCloseEmailCommand.php
12256 views
1
<?php
2
3
final class ManiphestCloseEmailCommand
4
extends ManiphestEmailCommand {
5
6
public function getCommand() {
7
return 'close';
8
}
9
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');
16
}
17
18
public function buildTransactions(
19
PhabricatorUser $viewer,
20
PhabricatorApplicationTransactionInterface $object,
21
PhabricatorMetaMTAReceivedMail $mail,
22
$command,
23
array $argv) {
24
$xactions = array();
25
26
$xactions[] = $object->getApplicationTransactionTemplate()
27
->setTransactionType(ManiphestTaskStatusTransaction::TRANSACTIONTYPE)
28
->setNewValue(ManiphestTaskStatus::getDefaultClosedStatus());
29
30
return $xactions;
31
}
32
33
}
34
35