for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Shopware\Psh\ScriptRuntime;
/**
* A single command of a script
*/
class ProcessCommand implements Command
{
* @var string
private $shellCommand;
* @var bool
private $ignoreError;
* @var int
private $lineNumber;
private $tty;
private $deferred;
* @param string $shellCommand
* @param int $lineNumber
* @param bool $ignoreError
* @param bool $tty
* @param bool $deferred
public function __construct(
string $shellCommand,
int $lineNumber,
bool $ignoreError,
bool $tty,
bool $deferred
) {
$this->shellCommand = $shellCommand;
$this->ignoreError = $ignoreError;
$this->lineNumber = $lineNumber;
$this->tty = $tty;
$this->deferred = $deferred;
}
* @return string
public function getShellCommand(): string
return $this->shellCommand;
* @return boolean
public function isIgnoreError(): bool
return $this->ignoreError;
* @return int
public function getLineNumber(): int
return $this->lineNumber;
* @return bool
public function isTTy(): bool
return $this->tty;
public function isDeferred(): bool
return $this->deferred;