Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/Twilio/Rest/Pricing/V2/Voice/NumberOptions.php
Строк: 108
<?php

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

namespace TwilioRestPricingV2Voice;

use 
TwilioOptions;
use 
TwilioValues;

abstract class 
NumberOptions {
    
/**
     * @param string $originationNumber The origination number for which to fetch
     *                                  pricing information
     * @return FetchNumberOptions Options builder
     */
    
public static function fetch(string $originationNumber Values::NONE): FetchNumberOptions {
        return new 
FetchNumberOptions($originationNumber);
    }
}

class 
FetchNumberOptions extends Options {
    
/**
     * @param string $originationNumber The origination number for which to fetch
     *                                  pricing information
     */
    
public function __construct(string $originationNumber Values::NONE) {
        
$this->options['originationNumber'] = $originationNumber;
    }

    
/**
     * The origination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number.
     *
     * @param string $originationNumber The origination number for which to fetch
     *                                  pricing information
     * @return $this Fluent Builder
     */
    
public function setOriginationNumber(string $originationNumber): self {
        
$this->options['originationNumber'] = $originationNumber;
        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.Pricing.V2.FetchNumberOptions ' $options ']';
    }
}
Онлайн: 3
Реклама