/
v.bolshakov
/
AIEcosystem-Testing
Обзор
Документация
Войти
/
v.bolshakov
/
AIEcosystem-Testing
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
common/shell/Runners/Exec.php
28 строк
487 B
Developer
Initial commit
03 авг 2026, 17:43
03 авг 2026, 17:43
7433917
Код
Авторство
О чём код?
<?php declare(strict_types=1); namespace common\shell\Runners; use common\shell\Commands\CommandInterface; class Exec implements Runner, ReturnValue, ResultCode { private $_returnValue; private $_resultCode; public function run(CommandInterface $command) { exec((string)$command, $this->_returnValue, $this->_resultCode); } public function getReturnValue() { return $this->_returnValue; } public function getResultCode(): ?int { return $this->_resultCode; } }