public function setDefaultPackageKey($defaultPackageKey)
    {
        if (!preg_match(Package::PATTERN_MATCH_PACKAGEKEY, $defaultPackageKey)) {
            throw new \InvalidArgumentException('The given argument was not a valid package key.', 1277287099);
        }
        $this->defaultPackageKey = $defaultPackageKey;
    }
public function setDefaultPackageKey($defaultPackageKey)
    {
        if (!preg_match(Package::PATTERN_MATCH_PACKAGEKEY, $defaultPackageKey)) {
            throw new \InvalidArgumentException('The given argument was not a valid package key.', 1277287099);
        }
        $this->defaultPackageKey = $defaultPackageKey;
    }
public function setDefaultPackageKey ( $ defaultPackageKey ) { if ( ! preg_match ( Package :: PATTERN_MATCH_PACKAGEKEY , $ defaultPackageKey ) ) { throw new \ InvalidArgumentException ( 'The given argument was not a valid package key.' , 1277287099 ) ; } $ this -> defaultPackageKey = $ defaultPackageKey ; }
Set the default package key to use for resource URIs.

@param string $defaultPackageKey
@return void
@throws \InvalidArgumentException
Set the default package key to use for resource URIs .