public function addSubscription(Subscription $subscription) { $this->subscriptions[$subscription->getId()] = $subscription; }