src/Options/ModuleOptions.php
public function setNamespaces(array $namespaces)
    {
        $this->namespaces = [];
        foreach ($namespaces as $namespace => $namespaceOptions) {
            $this->addNamespace($namespaceOptions, $namespace);
        }
    }
public function setNamespaces(array $namespaces)
    {
        $this->namespaces = [];
        foreach ($namespaces as $namespace => $namespaceOptions) {
            $this->addNamespace($namespaceOptions, $namespace);
        }
    }
Sets namespaces

@param  array $namespaces
@return void