| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class CancelTicket extends Command |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var MessageBusInterface |
||
| 16 | */ |
||
| 17 | private $commandBus; |
||
| 18 | |||
| 19 | public static function build(MessageBusInterface $commandBus) |
||
| 25 | } |
||
| 26 | |||
| 27 | protected function configure() |
||
| 28 | { |
||
| 29 | $this->setName('tickets:cancel-ticket') |
||
| 30 | ->setDescription('Cancels a ticket - does not handle refund.') |
||
| 31 | ->setDefinition([ |
||
| 32 | new InputArgument('purchaseId', InputArgument::REQUIRED, 'Purchase id'), |
||
| 33 | new InputArgument('ticketId', InputArgument::REQUIRED, 'Ticket id'), |
||
| 34 | ]); |
||
| 35 | } |
||
| 36 | |||
| 37 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 45 | } |
||
| 46 | } |
||
| 47 |