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

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

namespace TwilioRestServerlessV1Service;

use 
TwilioOptions;
use 
TwilioValues;

/**
 * PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
 */
abstract class EnvironmentOptions {
    
/**
     * @param string $domainSuffix A URL-friendly name that represents the
     *                             environment
     * @return CreateEnvironmentOptions Options builder
     */
    
public static function create(string $domainSuffix Values::NONE): CreateEnvironmentOptions {
        return new 
CreateEnvironmentOptions($domainSuffix);
    }
}

class 
CreateEnvironmentOptions extends Options {
    
/**
     * @param string $domainSuffix A URL-friendly name that represents the
     *                             environment
     */
    
public function __construct(string $domainSuffix Values::NONE) {
        
$this->options['domainSuffix'] = $domainSuffix;
    }

    
/**
     * A URL-friendly name that represents the environment and forms part of the domain name. Must have fewer than 32 characters.
     *
     * @param string $domainSuffix A URL-friendly name that represents the
     *                             environment
     * @return $this Fluent Builder
     */
    
public function setDomainSuffix(string $domainSuffix): self {
        
$this->options['domainSuffix'] = $domainSuffix;
        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.Serverless.V1.CreateEnvironmentOptions ' $options ']';
    }
}
Онлайн: 1
Реклама