code: private function setScheme($scheme)
      {
          if (in_array($scheme, array_keys(self::$schemes))) {
              $this->scheme = $scheme;
          } else {
              throw new \InvalidArgumentException("Invalid scheme");
          }
      }
docs: @param string $scheme
  
  @throws \InvalidArgumentException