PHP Класс Consolidation\Cgr\CommandToExec

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$arguments
$dir
$env
$execPath

Открытые методы

Метод Описание
__construct ( $execPath, $arguments, $env = [], $dir = '' ) Hold some command values to later exec
getCommandString ( ) Generate a single command string.
run ( $stdoutFile = '' ) Run our command. Set up the environment, as needed, ensuring that it is restored at the end of the run.
runCommand ( string $commandString, $stdoutFile = '' ) : integer Run a single command.

Описание методов

__construct() публичный Метод

Hold some command values to later exec
public __construct ( $execPath, $arguments, $env = [], $dir = '' )

getCommandString() публичный Метод

Generate a single command string.
public getCommandString ( )

run() публичный Метод

Run our command. Set up the environment, as needed, ensuring that it is restored at the end of the run.
public run ( $stdoutFile = '' )

runCommand() публичный статический Метод

Run a single command.
public static runCommand ( string $commandString, $stdoutFile = '' ) : integer
$commandString string
Результат integer

Описание свойств

$arguments защищенное свойство

protected $arguments

$dir защищенное свойство

protected $dir

$env защищенное свойство

protected $env

$execPath защищенное свойство

protected $execPath