芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/joolsmen.com/vendor/twilio/sdk/src/Twilio/Rest/Verify/V2/ServiceOptions.php
options['codeLength'] = $codeLength; $this->options['lookupEnabled'] = $lookupEnabled; $this->options['skipSmsToLandlines'] = $skipSmsToLandlines; $this->options['dtmfInputRequired'] = $dtmfInputRequired; $this->options['ttsName'] = $ttsName; $this->options['psd2Enabled'] = $psd2Enabled; $this->options['doNotShareWarningEnabled'] = $doNotShareWarningEnabled; } /** * The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. * * @param int $codeLength The length of the verification code to generate * @return $this Fluent Builder */ public function setCodeLength($codeLength) { $this->options['codeLength'] = $codeLength; return $this; } /** * Whether to perform a lookup with each verification started and return info about the phone number. * * @param bool $lookupEnabled Whether to perform a lookup with each verification * @return $this Fluent Builder */ public function setLookupEnabled($lookupEnabled) { $this->options['lookupEnabled'] = $lookupEnabled; return $this; } /** * Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. * * @param bool $skipSmsToLandlines Whether to skip sending SMS verifications to * landlines * @return $this Fluent Builder */ public function setSkipSmsToLandlines($skipSmsToLandlines) { $this->options['skipSmsToLandlines'] = $skipSmsToLandlines; return $this; } /** * Whether to ask the user to press a number before delivering the verify code in a phone call. * * @param bool $dtmfInputRequired Whether to ask the user to press a number * before delivering the verify code in a phone * call * @return $this Fluent Builder */ public function setDtmfInputRequired($dtmfInputRequired) { $this->options['dtmfInputRequired'] = $dtmfInputRequired; return $this; } /** * The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. * * @param string $ttsName The name of an alternative text-to-speech service to * use in phone calls * @return $this Fluent Builder */ public function setTtsName($ttsName) { $this->options['ttsName'] = $ttsName; return $this; } /** * Whether to pass PSD2 transaction parameters when starting a verification. * * @param bool $psd2Enabled Whether to pass PSD2 transaction parameters when * starting a verification * @return $this Fluent Builder */ public function setPsd2Enabled($psd2Enabled) { $this->options['psd2Enabled'] = $psd2Enabled; return $this; } /** * Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** * * @param bool $doNotShareWarningEnabled Whether to add a privacy warning at * the end of an SMS. * @return $this Fluent Builder */ public function setDoNotShareWarningEnabled($doNotShareWarningEnabled) { $this->options['doNotShareWarningEnabled'] = $doNotShareWarningEnabled; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Verify.V2.CreateServiceOptions ' . \implode(' ', $options) . ']'; } } class UpdateServiceOptions extends Options { /** * @param string $friendlyName A string to describe the verification service * @param int $codeLength The length of the verification code to generate * @param bool $lookupEnabled Whether to perform a lookup with each verification * @param bool $skipSmsToLandlines Whether to skip sending SMS verifications to * landlines * @param bool $dtmfInputRequired Whether to ask the user to press a number * before delivering the verify code in a phone * call * @param string $ttsName The name of an alternative text-to-speech service to * use in phone calls * @param bool $psd2Enabled Whether to pass PSD2 transaction parameters when * starting a verification * @param bool $doNotShareWarningEnabled Whether to add a privacy warning at * the end of an SMS. */ public function __construct($friendlyName = Values::NONE, $codeLength = Values::NONE, $lookupEnabled = Values::NONE, $skipSmsToLandlines = Values::NONE, $dtmfInputRequired = Values::NONE, $ttsName = Values::NONE, $psd2Enabled = Values::NONE, $doNotShareWarningEnabled = Values::NONE) { $this->options['friendlyName'] = $friendlyName; $this->options['codeLength'] = $codeLength; $this->options['lookupEnabled'] = $lookupEnabled; $this->options['skipSmsToLandlines'] = $skipSmsToLandlines; $this->options['dtmfInputRequired'] = $dtmfInputRequired; $this->options['ttsName'] = $ttsName; $this->options['psd2Enabled'] = $psd2Enabled; $this->options['doNotShareWarningEnabled'] = $doNotShareWarningEnabled; } /** * A descriptive string that you create to describe the verification service. It can be up to 64 characters long. **This value should not contain PII.** * * @param string $friendlyName A string to describe the verification service * @return $this Fluent Builder */ public function setFriendlyName($friendlyName) { $this->options['friendlyName'] = $friendlyName; return $this; } /** * The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. * * @param int $codeLength The length of the verification code to generate * @return $this Fluent Builder */ public function setCodeLength($codeLength) { $this->options['codeLength'] = $codeLength; return $this; } /** * Whether to perform a lookup with each verification started and return info about the phone number. * * @param bool $lookupEnabled Whether to perform a lookup with each verification * @return $this Fluent Builder */ public function setLookupEnabled($lookupEnabled) { $this->options['lookupEnabled'] = $lookupEnabled; return $this; } /** * Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. * * @param bool $skipSmsToLandlines Whether to skip sending SMS verifications to * landlines * @return $this Fluent Builder */ public function setSkipSmsToLandlines($skipSmsToLandlines) { $this->options['skipSmsToLandlines'] = $skipSmsToLandlines; return $this; } /** * Whether to ask the user to press a number before delivering the verify code in a phone call. * * @param bool $dtmfInputRequired Whether to ask the user to press a number * before delivering the verify code in a phone * call * @return $this Fluent Builder */ public function setDtmfInputRequired($dtmfInputRequired) { $this->options['dtmfInputRequired'] = $dtmfInputRequired; return $this; } /** * The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. * * @param string $ttsName The name of an alternative text-to-speech service to * use in phone calls * @return $this Fluent Builder */ public function setTtsName($ttsName) { $this->options['ttsName'] = $ttsName; return $this; } /** * Whether to pass PSD2 transaction parameters when starting a verification. * * @param bool $psd2Enabled Whether to pass PSD2 transaction parameters when * starting a verification * @return $this Fluent Builder */ public function setPsd2Enabled($psd2Enabled) { $this->options['psd2Enabled'] = $psd2Enabled; return $this; } /** * Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** * * @param bool $doNotShareWarningEnabled Whether to add a privacy warning at * the end of an SMS. * @return $this Fluent Builder */ public function setDoNotShareWarningEnabled($doNotShareWarningEnabled) { $this->options['doNotShareWarningEnabled'] = $doNotShareWarningEnabled; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Verify.V2.UpdateServiceOptions ' . \implode(' ', $options) . ']'; } }