PHP 클래스 yii2tech\selfupdate\ShellResult

부터: 1.0
저자: Paul Klimov ([email protected])
상속: extends yii\base\Object
파일 보기 프로젝트 열기: yii2tech/selfupdate

공개 프로퍼티들

프로퍼티 타입 설명
$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

메소드 상세

__toString() 공개 메소드

PHP magic method that returns the string representation of this object.
public __toString ( ) : string
리턴 string the string representation of this object.

getOutput() 공개 메소드

public getOutput ( string $glue = " " ) : string
$glue string lines glue.
리턴 string shell command output.

isOk() 공개 메소드

public isOk ( ) : boolean
리턴 boolean whether exit code is OK.

isOutputContains() 공개 메소드

Checks if output contains given string
public isOutputContains ( string $string ) : boolean
$string string needle string.
리턴 boolean whether output contains given string.

isOutputEmpty() 공개 메소드

public isOutputEmpty ( ) : boolean
리턴 boolean whether command execution produced empty output.

isOutputMatches() 공개 메소드

Checks if output matches give regular expression.
public isOutputMatches ( string $pattern ) : boolean
$pattern string regular expression
리턴 boolean whether output matches given regular expression.

toString() 공개 메소드

public toString ( ) : string
리턴 string string representation of this object.

프로퍼티 상세

$command 공개적으로 프로퍼티

command being executed.
public $command

$exitCode 공개적으로 프로퍼티

shell command execution exit code
public $exitCode

$outputLines 공개적으로 프로퍼티

shell command output lines.
public $outputLines