/**
  * Add element to array
  * @see AbstractStructArrayBase::add()
  * @throws \InvalidArgumentException
  * @uses \Ews\EnumType\EwsReminderType::valueIsValid()
  * @param string $item
  * @return \Ews\ArrayType\EwsArrayOfRemindersType
  */
 public function add($item)
 {
     if (!\Ews\EnumType\EwsReminderType::valueIsValid($item)) {
         throw new \InvalidArgumentException(sprintf('Value "%s" is invalid, please use one of: %s', $item, implode(', ', \Ews\EnumType\EwsReminderType::getValidValues())), __LINE__);
     }
     return parent::add($item);
 }
 /**
  * Set ReminderType value
  * @uses \Ews\EnumType\EwsReminderType::valueIsValid()
  * @uses \Ews\EnumType\EwsReminderType::getValidValues()
  * @throws \InvalidArgumentException
  * @param string $reminderType
  * @return \Ews\StructType\EwsGetRemindersType
  */
 public function setReminderType($reminderType = null)
 {
     // validation for constraint: enumeration
     if (!\Ews\EnumType\EwsReminderType::valueIsValid($reminderType)) {
         throw new \InvalidArgumentException(sprintf('Value "%s" is invalid, please use one of: %s', $reminderType, implode(', ', \Ews\EnumType\EwsReminderType::getValidValues())), __LINE__);
     }
     $this->ReminderType = $reminderType;
     return $this;
 }