CommandStarting.php 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace Illuminate\Console\Events;
  3. use Symfony\Component\Console\Input\InputInterface;
  4. use Symfony\Component\Console\Output\OutputInterface;
  5. class CommandStarting
  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. * Create a new event instance.
  27. *
  28. * @param string $command
  29. * @param \Symfony\Component\Console\Input\InputInterface $input
  30. * @param \Symfony\Component\Console\Output\OutputInterface $output
  31. * @return void
  32. */
  33. public function __construct($command, InputInterface $input, OutputInterface $output)
  34. {
  35. $this->input = $input;
  36. $this->output = $output;
  37. $this->command = $command;
  38. }
  39. }