PHP 클래스 Qafoo\Analyzer\Shell

파일 보기 프로젝트 열기: Qafoo/QualityAnalyzer 1 사용 예제들

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
makeAbsolute ( string $command ) : string Make absolute

메소드 상세

__construct() 공개 메소드

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

exec() 공개 메소드

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
리턴 string

getTempFile() 공개 메소드

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

makeAbsolute() 보호된 메소드

Make absolute
protected makeAbsolute ( string $command ) : string
$command string
리턴 string