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