for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Shopware\Psh\Config;
use function is_dir;
class ScriptsPath
{
/**
* @var string
*/
private $namespace;
* @var bool
private $hidden;
private $path;
private $workingDirectory;
* @param string $namespace
public function __construct(
string $path,
string $workingDirectory,
bool $hidden,
?string $namespace = null
) {
$this->namespace = $namespace;
$this->hidden = $hidden;
$this->path = $path;
$this->workingDirectory = $workingDirectory;
}
* @return string|null
public function getNamespace()
return $this->namespace;
public function getPath(): string
return $this->path;
public function isHidden(): bool
return $this->hidden;
public function isValid(): bool
return is_dir($this->path);
public function getWorkingDirectory(): string
return $this->workingDirectory;