mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 03:02:43 +01:00
e068188ea1
Summary: Ref T10088. Test Plan: {F1055107} Reviewers: chad Reviewed By: chad Maniphest Tasks: T10088 Differential Revision: https://secure.phabricator.com/D14953
32 lines
729 B
PHP
32 lines
729 B
PHP
<?php
|
|
|
|
final class ManiphestClaimEmailCommand
|
|
extends ManiphestEmailCommand {
|
|
|
|
public function getCommand() {
|
|
return 'claim';
|
|
}
|
|
|
|
public function getCommandSummary() {
|
|
return pht(
|
|
'Assign yourself as the owner of a task. To assign another user, '.
|
|
'see `%s`.',
|
|
'!assign');
|
|
}
|
|
|
|
public function buildTransactions(
|
|
PhabricatorUser $viewer,
|
|
PhabricatorApplicationTransactionInterface $object,
|
|
PhabricatorMetaMTAReceivedMail $mail,
|
|
$command,
|
|
array $argv) {
|
|
$xactions = array();
|
|
|
|
$xactions[] = $object->getApplicationTransactionTemplate()
|
|
->setTransactionType(ManiphestTransaction::TYPE_OWNER)
|
|
->setNewValue($viewer->getPHID());
|
|
|
|
return $xactions;
|
|
}
|
|
|
|
}
|