code: public function setNamespaces(array $namespaces)
      {
          $this->namespaces = [];
          foreach ($namespaces as $namespace => $namespaceOptions) {
              $this->addNamespace($namespaceOptions, $namespace);
          }
      }
docs: Sets namespaces
  
  @param  array $namespaces
  @return void