Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / nuance / command / NuanceTrashCommand.php
blobb5ac851539048be6696e515d518cc8a49f09a529
1 <?php
3 final class NuanceTrashCommand
4 extends NuanceCommandImplementation {
6 const COMMANDKEY = 'trash';
8 public function getCommandName() {
9 return pht('Throw in Trash');
12 public function canApplyToItem(NuanceItem $item) {
13 $type = $item->getImplementation();
14 return ($type instanceof NuanceFormItemType);
17 public function canApplyImmediately(
18 NuanceItem $item,
19 NuanceItemCommand $command) {
20 return true;
23 protected function executeCommand(
24 NuanceItem $item,
25 NuanceItemCommand $command) {
26 $this->newStatusTransaction(NuanceItem::STATUS_CLOSED);