/** * Constructor method for VoiceMsgAction * @param VoiceMsgActionSpec $action Action specification * @param StorePrincipalSpec $storeprincipal Store principal specification * @return self */ public function __construct(VoiceMsgActionSpec $action, StorePrincipalSpec $storeprincipal = null) { parent::__construct(); if ($storeprincipal instanceof StorePrincipalSpec) { $this->setChild('storeprincipal', $storeprincipal); } $this->setChild('action', $action); }
/** * Constructor method for ModifyVoiceFeatures * @param StorePrincipalSpec $storeprincipal * @param ModifyVoiceFeaturesSpec $phone * @return self */ public function __construct(StorePrincipalSpec $storeprincipal = null, ModifyVoiceFeaturesSpec $phone = null) { parent::__construct(); if ($storeprincipal instanceof StorePrincipalSpec) { $this->setChild('storeprincipal', $storeprincipal); } if ($phone instanceof ModifyVoiceFeaturesSpec) { $this->setChild('phone', $phone); } }
/** * Constructor method for ModifyVoiceMailPrefs * @param StorePrincipalSpec $storeprincipal * @param PhoneInfo $phone * @return self */ public function __construct(StorePrincipalSpec $storeprincipal = null, PhoneInfo $phone = null) { parent::__construct(); if ($storeprincipal instanceof StorePrincipalSpec) { $this->setChild('storeprincipal', $storeprincipal); } if ($phone instanceof PhoneInfo) { $this->setChild('phone', $phone); } }
/** * Constructor method for UploadVoiceMail * @param StorePrincipalSpec $storeprincipal Store principal specification * @param VoiceMsgUploadSpec $vm Specification of voice message to upload * @return self */ public function __construct(StorePrincipalSpec $storeprincipal = null, VoiceMsgUploadSpec $voiceMsg = null) { parent::__construct(); if ($storeprincipal instanceof StorePrincipalSpec) { $this->setChild('storeprincipal', $storeprincipal); } if ($voiceMsg instanceof VoiceMsgUploadSpec) { $this->setChild('vm', $voiceMsg); } }
/** * Constructor method for GetVoiceInfo * @param array $phones * @return self */ public function __construct(array $phones = array()) { parent::__construct(); $this->setPhones($phones); $this->on('before', function (Base $sender) { if ($sender->getPhones()->count()) { $sender->setChild('phone', $sender->getPhones()->all()); } }); }
/** * Constructor method for GetVoiceFolder * @param StorePrincipalSpec $storeprincipal Store principal specification * @param array $phones * @return self */ public function __construct(StorePrincipalSpec $storeprincipal = null, array $phones = array()) { parent::__construct(); if ($storeprincipal instanceof StorePrincipalSpec) { $this->setChild('storeprincipal', $storeprincipal); } $this->setPhones($phones); $this->on('before', function (Base $sender) { if ($sender->getPhones()->count()) { $sender->setChild('phone', $sender->getPhones()->all()); } }); }
/** * Constructor method for SearchVoice * @param string $query * @param StorePrincipalSpec $storeprincipal * @param int $limit * @param int $offset * @param string $types * @param VoiceSortBy $sortBy * @return self */ public function __construct($query, StorePrincipalSpec $storeprincipal = null, $limit = null, $offset = null, $types = null, VoiceSortBy $sortBy = null) { parent::__construct(); $this->setProperty('query', trim($query)); if ($storeprincipal instanceof StorePrincipalSpec) { $this->setChild('storeprincipal', $storeprincipal); } if (null !== $limit) { $this->setProperty('limit', (int) $limit); } if (null !== $offset) { $this->setProperty('offset', (int) $offset); } if (null !== $types) { $this->setProperty('types', trim($types)); } if ($sortBy instanceof VoiceSortBy) { $this->setProperty('sortBy', $sortBy); } }