mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-04 20:52:43 +01:00
26 lines
585 B
PHP
26 lines
585 B
PHP
|
<?php
|
||
|
|
||
|
final class ManiphestCloseEmailCommand
|
||
|
extends ManiphestEmailCommand {
|
||
|
|
||
|
public function getCommand() {
|
||
|
return 'close';
|
||
|
}
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
}
|