/**
  * @param $subscriptionType
  * @throws \Exception
  */
 public function setSubscriptionType($subscriptionType)
 {
     if (SubscriptionType::isValid($subscriptionType) === false) {
         throw new \Exception("SubscriptionType not valid!");
     }
     $this->subscriptionType = $subscriptionType;
 }
 public function testIsNotValid()
 {
     $this->assertFalse(SubscriptionType::isValid(4));
     $this->assertFalse(SubscriptionType::isValid(-1));
     $this->assertFalse(SubscriptionType::isValid('test'));
     $this->assertFalse(SubscriptionType::isValid(array(1, 2)));
     $this->assertFalse(SubscriptionType::isValid(true));
 }