![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/rector/rector/vendor/illuminate/contracts/Process/ |
<?php namespace RectorPrefix202308\Illuminate\Contracts\Process; interface ProcessResult { /** * Get the original command executed by the process. * * @return string */ public function command(); /** * Determine if the process was successful. * * @return bool */ public function successful(); /** * Determine if the process failed. * * @return bool */ public function failed(); /** * Get the exit code of the process. * * @return int|null */ public function exitCode(); /** * Get the standard output of the process. * * @return string */ public function output(); /** * Get the error output of the process. * * @return string */ public function errorOutput(); /** * Throw an exception if the process failed. * * @param callable|null $callback * @return $this */ public function throw(callable $callback = null); /** * Throw an exception if the process failed and the given condition is true. * * @param bool $condition * @param callable|null $callback * @return $this */ public function throwIf(bool $condition, callable $callback = null); }