public function setExitCode($exitCode)
    {
        $this->exitCode = (int) $exitCode;

        $r = new \ReflectionProperty($this->error, 'code');
        $r->setAccessible(true);
        $r->setValue($this->error, $this->exitCode);
    }
public function setExitCode($exitCode)
    {
        $this->exitCode = (int) $exitCode;

        $r = new \ReflectionProperty($this->error, 'code');
        $r->setAccessible(true);
        $r->setValue($this->error, $this->exitCode);
    }
public function setExitCode ( $ exitCode ) { $ this -> exitCode = ( int ) $ exitCode ; $ r = new \ ReflectionProperty ( $ this -> error , 'code' ) ; $ r -> setAccessible ( true ) ; $ r -> setValue ( $ this -> error , $ this -> exitCode ) ; }
Sets the exit code.

@param int $exitCode The command exit code
Sets the exit code .