PHP Класс yii2tech\selfupdate\ShellResult

С версии: 1.0
Автор: Paul Klimov ([email protected])
Наследование: extends yii\base\Object
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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