Gets the status code returned by the last execution of the command or application.
\RuntimeException If it's called before the execute method
public function getStatusCode() : int { return $this->statusCode ?? throw new \RuntimeException('Status code not initialized, did you execute the command before requesting the status code?'); }