Esempio n. 1
0
 public function changeSubscription(AccountSubscriptionChange $subscriptionChange)
 {
     if ($subscriptionChange->getNewSubscription() === null) {
         throw new Exception("Cannot change subscription to 'null'.");
     }
     $this->subscription = $subscriptionChange->getNewSubscription();
     $this->addAccountChange($subscriptionChange);
     return $this;
 }