프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$command | command being executed. | ||
$exitCode | shell command execution exit code | ||
$outputLines | shell command output lines. |
메소드 | 설명 | |
---|---|---|
__toString ( ) : string | PHP magic method that returns the string representation of this object. | |
getOutput ( string $glue = " " ) : string | ||
isOk ( ) : boolean | ||
isOutputContains ( string $string ) : boolean | Checks if output contains given string | |
isOutputEmpty ( ) : boolean | ||
isOutputMatches ( string $pattern ) : boolean | Checks if output matches give regular expression. | |
toString ( ) : string |
public __toString ( ) : string | ||
리턴 | string | the string representation of this object. |
public isOutputContains ( string $string ) : boolean | ||
$string | string | needle string. |
리턴 | boolean | whether output contains given string. |
public isOutputEmpty ( ) : boolean | ||
리턴 | boolean | whether command execution produced empty output. |
public isOutputMatches ( string $pattern ) : boolean | ||
$pattern | string | regular expression |
리턴 | boolean | whether output matches given regular expression. |