PHP Class Qafoo\Analyzer\Shell

显示文件 Open project: Qafoo/QualityAnalyzer Class Usage Examples

Public Methods

Method Description
__construct ( string | null $baseDir = null )
exec ( string $command, array $arguments = [], array $okCodes = [0], null $workingDir = null ) : string Exec shell command
getTempFile ( string $prefix = 'qa' ) : string Get temp file

Protected Methods

Method Description
makeAbsolute ( string $command ) : string Make absolute

Method Details

__construct() public method

public __construct ( string | null $baseDir = null )
$baseDir string | null

exec() public method

Fails if the command returns with a non zero exit code
public exec ( string $command, array $arguments = [], array $okCodes = [0], null $workingDir = null ) : string
$command string
$arguments array
$okCodes array
$workingDir null
return string

getTempFile() public method

Get temp file
public getTempFile ( string $prefix = 'qa' ) : string
$prefix string
return string

makeAbsolute() protected method

Make absolute
protected makeAbsolute ( string $command ) : string
$command string
return string