mikehaertl\shellcommand\Command::getExitCode PHP Метод

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

public getExitCode ( ) : integer | null
Результат integer | null the exit code or null if command was not executed yet
    public function getExitCode()
    {
        return $this->_exitCode;
    }

Usage Example

Пример #1
0
 /**
  * Execute docker-compose commande
  * @codeCoverageIgnore
  * @param Command $command The command to execute.
  */
 protected function execute($command)
 {
     if ($command->execute()) {
         $output = $command->getOutput();
     } else {
         $output = $command->getError();
     }
     return array('output' => $output, 'code' => $command->getExitCode());
 }
All Usage Examples Of mikehaertl\shellcommand\Command::getExitCode