public function addCopyLeft($author, $pattern)
    {
        if (\is_array($pattern)) {
            foreach ($pattern as $singlePattern) {
                $this->addCopyLeft($author, $singlePattern);
            }

            return $this;
        }

        $this->copyLeft[$this->arrayKey($author)][$this->arrayKey($pattern)] = $pattern;
        $this->copyLeftReal[$this->arrayKey($author)]                        = $author;

        return $this;
    }
public function addCopyLeft($author, $pattern)
    {
        if (\is_array($pattern)) {
            foreach ($pattern as $singlePattern) {
                $this->addCopyLeft($author, $singlePattern);
            }

            return $this;
        }

        $this->copyLeft[$this->arrayKey($author)][$this->arrayKey($pattern)] = $pattern;
        $this->copyLeftReal[$this->arrayKey($author)]                        = $author;

        return $this;
    }
public function addCopyLeft ( $ author , $ pattern ) { if ( \ is_array ( $ pattern ) ) { foreach ( $ pattern as $ singlePattern ) { $ this -> addCopyLeft ( $ author , $ singlePattern ) ; } return $ this ; } $ this -> copyLeft [ $ this -> arrayKey ( $ author ) ] [ $ this -> arrayKey ( $ pattern ) ] = $ pattern ; $ this -> copyLeftReal [ $ this -> arrayKey ( $ author ) ] = $ author ; return $ this ; }
Add the the given authors to the copy-left list using the given pattern.

@param string       $author  The author to add.
@param string|array $pattern The pattern to add to the author.

@return Config
Add the the given authors to the copy - left list using the given pattern .