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;
use Shopware\Psh\Listing\Script;
class BashCommand implements ProcessCommand
{
/**
* @var Script
*/
private $script;
* @var string|null
private $warning;
public function __construct(Script $script, ?string $warning = null)
$this->script = $script;
$this->warning = $warning;
}
public function getScript(): Script
return $this->script;
public function getLineNumber(): int
return 1;
public function isIgnoreError(): bool
return false;
public function isTTy(): bool
public function hasWarning(): bool
return $this->warning !== null;
public function getWarning(): ?string
return $this->warning;
public function getWorkingDirectory(): string
return $this->script->getWorkingDirectory();