public function getPackage($packageKey)
    {
        if (!$this->isPackageAvailable($packageKey)) {
            throw new Exception\UnknownPackageException('Package "' . $packageKey . '" is not available. Please check if the package exists and that the package key is correct (package keys are case sensitive).', 1166546734);
        }

        return $this->packages[$packageKey];
    }
public function getPackage($packageKey)
    {
        if (!$this->isPackageAvailable($packageKey)) {
            throw new Exception\UnknownPackageException('Package "' . $packageKey . '" is not available. Please check if the package exists and that the package key is correct (package keys are case sensitive).', 1166546734);
        }

        return $this->packages[$packageKey];
    }
public function getPackage ( $ packageKey ) { if ( ! $ this -> isPackageAvailable ( $ packageKey ) ) { throw new Exception \ UnknownPackageException ( 'Package "' . $ packageKey . '" is not available. Please check if the package exists and that the package key is correct (package keys are case sensitive).' , 1166546734 ) ; } return $ this -> packages [ $ packageKey ] ; }
Returns a PackageInterface object for the specified package.

@param string $packageKey
@return PackageInterface The requested package object
@throws Exception\UnknownPackageException if the specified package is not known
@api
Returns a PackageInterface object for the specified package .