RunProcessMessage.php 757 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Process\Messenger;
  11. /**
  12. * @author Kevin Bond <kevinbond@gmail.com>
  13. */
  14. class RunProcessMessage implements \Stringable
  15. {
  16. public function __construct(
  17. public readonly array $command,
  18. public readonly ?string $cwd = null,
  19. public readonly ?array $env = null,
  20. public readonly mixed $input = null,
  21. public readonly ?float $timeout = 60.0,
  22. ) {
  23. }
  24. public function __toString(): string
  25. {
  26. return implode(' ', $this->command);
  27. }
  28. }