public function setExitCode(int $exitCode): void
    {
        $this->parameters['exit_code'] = $exitCode;

        $r = new ReflectionProperty($this->parameters['error'], 'code');
        $r->setAccessible(true);
        $r->setValue($this->parameters['error'], $this->parameters['exit_code']);
    }
public function setExitCode(int $exitCode): void
    {
        $this->parameters['exit_code'] = $exitCode;

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

@param int $exitCode The command exit code

@throws \ReflectionException

@return void
Sets the exit code .