public function getPattern(PackageInterface $package)
    {
        if (isset($this->packages[$package->getName()])) {
            return $this->packages[$package->getName()];
        } elseif (isset($this->packages[$package->getPrettyName()])) {
            return $this->packages[$package->getPrettyName()];
        } elseif (isset($this->types[$package->getType()])) {
            return $this->types[$package->getType()];
        }
    }
public function getPattern(PackageInterface $package)
    {
        if (isset($this->packages[$package->getName()])) {
            return $this->packages[$package->getName()];
        } elseif (isset($this->packages[$package->getPrettyName()])) {
            return $this->packages[$package->getPrettyName()];
        } elseif (isset($this->types[$package->getType()])) {
            return $this->types[$package->getType()];
        }
    }
public function getPattern ( PackageInterface $ package ) { if ( isset ( $ this -> packages [ $ package -> getName ( ) ] ) ) { return $ this -> packages [ $ package -> getName ( ) ] ; } elseif ( isset ( $ this -> packages [ $ package -> getPrettyName ( ) ] ) ) { return $ this -> packages [ $ package -> getPrettyName ( ) ] ; } elseif ( isset ( $ this -> types [ $ package -> getType ( ) ] ) ) { return $ this -> types [ $ package -> getType ( ) ] ; } }
Retrieve the pattern for the given package.

@param \Composer\Package\PackageInterface $package

@return string
Retrieve the pattern for the given package .