Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/Twilio/Rest/Proxy/V1/Service/ShortCodeOptions.php
Строк: 74
<?php

/**
 * This code was generated by
 *  / _    _  _|   _  _
 * | (_)/(_)(_|/| |(/_  v1.0.0
 * /       /
 */

namespace TwilioRestProxyV1Service;

use 
TwilioOptions;
use 
TwilioValues;

/**
 * PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
 */
abstract class ShortCodeOptions {
    
/**
     * @param bool $isReserved Whether the short code should be reserved for manual
     *                         assignment to participants only
     * @return UpdateShortCodeOptions Options builder
     */
    
public static function update(bool $isReserved Values::NONE): UpdateShortCodeOptions {
        return new 
UpdateShortCodeOptions($isReserved);
    }
}

class 
UpdateShortCodeOptions extends Options {
    
/**
     * @param bool $isReserved Whether the short code should be reserved for manual
     *                         assignment to participants only
     */
    
public function __construct(bool $isReserved Values::NONE) {
        
$this->options['isReserved'] = $isReserved;
    }

    
/**
     * Whether the short code should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information.
     *
     * @param bool $isReserved Whether the short code should be reserved for manual
     *                         assignment to participants only
     * @return $this Fluent Builder
     */
    
public function setIsReserved(bool $isReserved): self {
        
$this->options['isReserved'] = $isReserved;
        return 
$this;
    }

    
/**
     * Provide a friendly representation
     *
     * @return string Machine friendly representation
     */
    
public function __toString(): string {
        
$options http_build_query(Values::of($this->options), ''' ');
        return 
'[Twilio.Proxy.V1.UpdateShortCodeOptions ' $options ']';
    }
}
Онлайн: 1
Реклама