code: public function setReportError(string $reportError): void
      {
          if (!\in_array($reportError, ['silent', 'exception'], true)) {
              throw new DatabaseException('The report error "' . $reportError . '" is incorrect. (silent , exception)');
          }
  
          $this->reportError = $reportError;
      }
docs: @param string $reportError
  
  @throws DatabaseException