public function subscribeTo($package)
    {
        if (!$this->hasSubscription(false)) {
            $this->_mixer->subscription = $this->getService('repos:subscriptions.subscription')
            ->getEntity(array(
                'data' => array(
                    'package' => $package,
                  ),
            ));
            $this->_mixer->verified = 1;
        }

        return $this->_mixer->subscription;
    }
public function subscribeTo($package)
    {
        if (!$this->hasSubscription(false)) {
            $this->_mixer->subscription = $this->getService('repos:subscriptions.subscription')
            ->getEntity(array(
                'data' => array(
                    'package' => $package,
                  ),
            ));
            $this->_mixer->verified = 1;
        }

        return $this->_mixer->subscription;
    }
public function subscribeTo ( $ package ) { if ( ! $ this -> hasSubscription ( false ) ) { $ this -> _mixer -> subscription = $ this -> getService ( 'repos:subscriptions.subscription' ) -> getEntity ( array ( 'data' => array ( 'package' => $ package , ) , ) ) ; $ this -> _mixer -> verified = 1 ; } return $ this -> _mixer -> subscription ; }
Subscribe to  a package.

@param ComSubscriptionsDomainEntityPackage $package
Subscribe to a package .