Page MenuHomec4science

ManiphestClaimEmailCommand.php
No OneTemporary

File Metadata

Created
Wed, Nov 20, 14:24

ManiphestClaimEmailCommand.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.');
}
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;
}
}

Event Timeline