getExitCode() public method

Gets the numerical exit code which should be returned when exiting this application.
public getExitCode ( ) : integer
return integer
 /**
  * Starts the shutdown sequence
  *
  * @param string $runlevel one of the Bootstrap::RUNLEVEL_* constants
  * @return void
  */
 protected function shutdown($runlevel)
 {
     $this->bootstrap->shutdown($runlevel);
     if ($runlevel === Bootstrap::RUNLEVEL_COMPILETIME) {
         $this->objectManager->get(LockManager::class)->unlockSite();
     }
     exit($this->response->getExitCode());
 }