CommandFinished.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace Illuminate\Console\Events;
  3. use Symfony\Component\Console\Input\InputInterface;
  4. use Symfony\Component\Console\Output\OutputInterface;
  5. class CommandFinished
  6. {
  7. /**
  8. * The command name.
  9. *
  10. * @var string
  11. */
  12. public $command;
  13. /**
  14. * The console input implementation.
  15. *
  16. * @var \Symfony\Component\Console\Input\InputInterface|null
  17. */
  18. public $input;
  19. /**
  20. * The command output implementation.
  21. *
  22. * @var \Symfony\Component\Console\Output\OutputInterface|null
  23. */
  24. public $output;
  25. /**
  26. * The command exit code.
  27. *
  28. * @var int
  29. */
  30. public $exitCode;
  31. /**
  32. * Create a new event instance.
  33. *
  34. * @param string $command
  35. * @param \Symfony\Component\Console\Input\InputInterface $input
  36. * @param \Symfony\Component\Console\Output\OutputInterface $output
  37. * @param int $exitCode
  38. * @return void
  39. */
  40. public function __construct($command, InputInterface $input, OutputInterface $output, $exitCode)
  41. {
  42. $this->input = $input;
  43. $this->output = $output;
  44. $this->command = $command;
  45. $this->exitCode = $exitCode;
  46. }
  47. }