public function addAuthorMap($mapping)
    {
        foreach ($mapping as $author => $aliases) {
            if (\is_array($aliases)) {
                foreach ($aliases as $alias) {
                    $this->aliasAuthor($alias, $author);
                }
            } else {
                $this->aliasAuthor($aliases, $author);
            }
        }

        return $this;
    }
public function addAuthorMap($mapping)
    {
        foreach ($mapping as $author => $aliases) {
            if (\is_array($aliases)) {
                foreach ($aliases as $alias) {
                    $this->aliasAuthor($alias, $author);
                }
            } else {
                $this->aliasAuthor($aliases, $author);
            }
        }

        return $this;
    }
public function addAuthorMap ( $ mapping ) { foreach ( $ mapping as $ author => $ aliases ) { if ( \ is_array ( $ aliases ) ) { foreach ( $ aliases as $ alias ) { $ this -> aliasAuthor ( $ alias , $ author ) ; } } else { $ this -> aliasAuthor ( $ aliases , $ author ) ; } } return $ this ; }
Absorb the author mapping.

The input argument must be in the format:
Real author: [multiple aliases]
or
Real author: alias

@param array $mapping The author mapping to absorb.

@return Config
Absorb the author mapping .