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