PHP Class Qafoo\Analyzer\Shell

Afficher le fichier Open project: Qafoo/QualityAnalyzer Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
makeAbsolute ( string $command ) : string Make absolute

Method Details

__construct() public méthode

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

exec() public méthode

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
Résultat string

getTempFile() public méthode

Get temp file
public getTempFile ( string $prefix = 'qa' ) : string
$prefix string
Résultat string

makeAbsolute() protected méthode

Make absolute
protected makeAbsolute ( string $command ) : string
$command string
Résultat string