public function addMetadataDirs(array $namespacePrefixToDirMap): self
    {
        foreach ($namespacePrefixToDirMap as $prefix => $dir) {
            $this->addMetadataDir($dir, $prefix);
        }

        return $this;
    }
public function addMetadataDirs(array $namespacePrefixToDirMap): self
    {
        foreach ($namespacePrefixToDirMap as $prefix => $dir) {
            $this->addMetadataDir($dir, $prefix);
        }

        return $this;
    }
public function addMetadataDirs ( array $ namespacePrefixToDirMap ) : self { foreach ( $ namespacePrefixToDirMap as $ prefix => $ dir ) { $ this -> addMetadataDir ( $ dir , $ prefix ) ; } return $ this ; }
Adds a map of namespace prefixes to directories.

@param array <string,string> $namespacePrefixToDirMap

@return SerializerBuilder
Adds a map of namespace prefixes to directories .