repository_name
stringlengths
5
67
func_path_in_repository
stringlengths
4
234
func_name
stringlengths
0
314
whole_func_string
stringlengths
52
3.87M
language
stringclasses
6 values
func_code_string
stringlengths
39
1.84M
func_code_tokens
sequencelengths
15
672k
func_documentation_string
stringlengths
1
47.2k
func_documentation_tokens
sequencelengths
1
3.92k
split_name
stringclasses
1 value
func_code_url
stringlengths
85
339
twilio/twilio-php
Twilio/Rest/Wireless/V1/CommandList.php
CommandList.create
public function create($command, $options = array()) { $options = new Values($options); $data = Values::of(array( 'Command' => $command, 'Sim' => $options['sim'], 'CallbackMethod' => $options['callbackMethod'], 'CallbackUrl' => $options['callbackUrl'], 'CommandMode' => $options['commandMode'], 'IncludeSid' => $options['includeSid'], 'DeliveryReceiptRequested' => Serialize::booleanToString($options['deliveryReceiptRequested']), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new CommandInstance($this->version, $payload); }
php
public function create($command, $options = array()) { $options = new Values($options); $data = Values::of(array( 'Command' => $command, 'Sim' => $options['sim'], 'CallbackMethod' => $options['callbackMethod'], 'CallbackUrl' => $options['callbackUrl'], 'CommandMode' => $options['commandMode'], 'IncludeSid' => $options['includeSid'], 'DeliveryReceiptRequested' => Serialize::booleanToString($options['deliveryReceiptRequested']), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new CommandInstance($this->version, $payload); }
[ "public", "function", "create", "(", "$", "command", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Command'", "=>", "$", "command", ",", "'Sim'", "=>", "$", "options", "[", "'sim'", "]", ",", "'CallbackMethod'", "=>", "$", "options", "[", "'callbackMethod'", "]", ",", "'CallbackUrl'", "=>", "$", "options", "[", "'callbackUrl'", "]", ",", "'CommandMode'", "=>", "$", "options", "[", "'commandMode'", "]", ",", "'IncludeSid'", "=>", "$", "options", "[", "'includeSid'", "]", ",", "'DeliveryReceiptRequested'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'deliveryReceiptRequested'", "]", ")", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "CommandInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ")", ";", "}" ]
Create a new CommandInstance @param string $command The message body of the Command or a Base64 encoded byte string in binary mode. @param array|Options $options Optional Arguments @return CommandInstance Newly created CommandInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "CommandInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Wireless/V1/CommandList.php#L137-L158
twilio/twilio-php
Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionContext.php
SyncListPermissionContext.update
public function update($read, $write, $manage) { $data = Values::of(array( 'Read' => Serialize::booleanToString($read), 'Write' => Serialize::booleanToString($write), 'Manage' => Serialize::booleanToString($manage), )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new SyncListPermissionInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['listSid'], $this->solution['identity'] ); }
php
public function update($read, $write, $manage) { $data = Values::of(array( 'Read' => Serialize::booleanToString($read), 'Write' => Serialize::booleanToString($write), 'Manage' => Serialize::booleanToString($manage), )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new SyncListPermissionInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['listSid'], $this->solution['identity'] ); }
[ "public", "function", "update", "(", "$", "read", ",", "$", "write", ",", "$", "manage", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Read'", "=>", "Serialize", "::", "booleanToString", "(", "$", "read", ")", ",", "'Write'", "=>", "Serialize", "::", "booleanToString", "(", "$", "write", ")", ",", "'Manage'", "=>", "Serialize", "::", "booleanToString", "(", "$", "manage", ")", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "update", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "SyncListPermissionInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'listSid'", "]", ",", "$", "this", "->", "solution", "[", "'identity'", "]", ")", ";", "}" ]
Update the SyncListPermissionInstance @param boolean $read Read access. @param boolean $write Write access. @param boolean $manage Manage access. @return SyncListPermissionInstance Updated SyncListPermissionInstance @throws TwilioException When an HTTP error occurs.
[ "Update", "the", "SyncListPermissionInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionContext.php#L87-L108
twilio/twilio-php
Twilio/Rest/Preview/DeployedDevices/Fleet/KeyInstance.php
KeyInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new KeyContext( $this->version, $this->solution['fleetSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new KeyContext( $this->version, $this->solution['fleetSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "KeyContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'fleetSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Preview\DeployedDevices\Fleet\KeyContext Context for this KeyInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyInstance.php#L69-L79
twilio/twilio-php
Twilio/Rest/Serverless/V1/Service/AssetContext.php
AssetContext.getAssetVersions
protected function getAssetVersions() { if (!$this->_assetVersions) { $this->_assetVersions = new AssetVersionList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_assetVersions; }
php
protected function getAssetVersions() { if (!$this->_assetVersions) { $this->_assetVersions = new AssetVersionList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_assetVersions; }
[ "protected", "function", "getAssetVersions", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_assetVersions", ")", "{", "$", "this", "->", "_assetVersions", "=", "new", "AssetVersionList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_assetVersions", ";", "}" ]
Access the assetVersions @return \Twilio\Rest\Serverless\V1\Service\Asset\AssetVersionList
[ "Access", "the", "assetVersions" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/Service/AssetContext.php#L97-L107
twilio/twilio-php
Twilio/Rest/Autopilot/V1/AssistantContext.php
AssistantContext.getFieldTypes
protected function getFieldTypes() { if (!$this->_fieldTypes) { $this->_fieldTypes = new FieldTypeList($this->version, $this->solution['sid']); } return $this->_fieldTypes; }
php
protected function getFieldTypes() { if (!$this->_fieldTypes) { $this->_fieldTypes = new FieldTypeList($this->version, $this->solution['sid']); } return $this->_fieldTypes; }
[ "protected", "function", "getFieldTypes", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_fieldTypes", ")", "{", "$", "this", "->", "_fieldTypes", "=", "new", "FieldTypeList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_fieldTypes", ";", "}" ]
Access the fieldTypes @return \Twilio\Rest\Autopilot\V1\Assistant\FieldTypeList
[ "Access", "the", "fieldTypes" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/AssistantContext.php#L132-L138
twilio/twilio-php
Twilio/Rest/Autopilot/V1/AssistantContext.php
AssistantContext.getModelBuilds
protected function getModelBuilds() { if (!$this->_modelBuilds) { $this->_modelBuilds = new ModelBuildList($this->version, $this->solution['sid']); } return $this->_modelBuilds; }
php
protected function getModelBuilds() { if (!$this->_modelBuilds) { $this->_modelBuilds = new ModelBuildList($this->version, $this->solution['sid']); } return $this->_modelBuilds; }
[ "protected", "function", "getModelBuilds", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_modelBuilds", ")", "{", "$", "this", "->", "_modelBuilds", "=", "new", "ModelBuildList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_modelBuilds", ";", "}" ]
Access the modelBuilds @return \Twilio\Rest\Autopilot\V1\Assistant\ModelBuildList
[ "Access", "the", "modelBuilds" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/AssistantContext.php#L158-L164
twilio/twilio-php
Twilio/Rest/Autopilot/V1/AssistantContext.php
AssistantContext.getQueries
protected function getQueries() { if (!$this->_queries) { $this->_queries = new QueryList($this->version, $this->solution['sid']); } return $this->_queries; }
php
protected function getQueries() { if (!$this->_queries) { $this->_queries = new QueryList($this->version, $this->solution['sid']); } return $this->_queries; }
[ "protected", "function", "getQueries", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_queries", ")", "{", "$", "this", "->", "_queries", "=", "new", "QueryList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_queries", ";", "}" ]
Access the queries @return \Twilio\Rest\Autopilot\V1\Assistant\QueryList
[ "Access", "the", "queries" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/AssistantContext.php#L171-L177
twilio/twilio-php
Twilio/Rest/Autopilot/V1/AssistantContext.php
AssistantContext.getStyleSheet
protected function getStyleSheet() { if (!$this->_styleSheet) { $this->_styleSheet = new StyleSheetList($this->version, $this->solution['sid']); } return $this->_styleSheet; }
php
protected function getStyleSheet() { if (!$this->_styleSheet) { $this->_styleSheet = new StyleSheetList($this->version, $this->solution['sid']); } return $this->_styleSheet; }
[ "protected", "function", "getStyleSheet", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_styleSheet", ")", "{", "$", "this", "->", "_styleSheet", "=", "new", "StyleSheetList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_styleSheet", ";", "}" ]
Access the styleSheet @return \Twilio\Rest\Autopilot\V1\Assistant\StyleSheetList
[ "Access", "the", "styleSheet" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/AssistantContext.php#L184-L190
twilio/twilio-php
Twilio/Rest/Autopilot/V1/AssistantContext.php
AssistantContext.getDefaults
protected function getDefaults() { if (!$this->_defaults) { $this->_defaults = new DefaultsList($this->version, $this->solution['sid']); } return $this->_defaults; }
php
protected function getDefaults() { if (!$this->_defaults) { $this->_defaults = new DefaultsList($this->version, $this->solution['sid']); } return $this->_defaults; }
[ "protected", "function", "getDefaults", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_defaults", ")", "{", "$", "this", "->", "_defaults", "=", "new", "DefaultsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_defaults", ";", "}" ]
Access the defaults @return \Twilio\Rest\Autopilot\V1\Assistant\DefaultsList
[ "Access", "the", "defaults" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/AssistantContext.php#L197-L203
twilio/twilio-php
Twilio/Rest/Autopilot/V1/AssistantContext.php
AssistantContext.getDialogues
protected function getDialogues() { if (!$this->_dialogues) { $this->_dialogues = new DialogueList($this->version, $this->solution['sid']); } return $this->_dialogues; }
php
protected function getDialogues() { if (!$this->_dialogues) { $this->_dialogues = new DialogueList($this->version, $this->solution['sid']); } return $this->_dialogues; }
[ "protected", "function", "getDialogues", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_dialogues", ")", "{", "$", "this", "->", "_dialogues", "=", "new", "DialogueList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_dialogues", ";", "}" ]
Access the dialogues @return \Twilio\Rest\Autopilot\V1\Assistant\DialogueList
[ "Access", "the", "dialogues" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/AssistantContext.php#L210-L216
twilio/twilio-php
Twilio/Rest/Studio/V1/Flow/Engagement/StepInstance.php
StepInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new StepContext( $this->version, $this->solution['flowSid'], $this->solution['engagementSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new StepContext( $this->version, $this->solution['flowSid'], $this->solution['engagementSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "StepContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'flowSid'", "]", ",", "$", "this", "->", "solution", "[", "'engagementSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Studio\V1\Flow\Engagement\StepContext Context for this StepInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/Flow/Engagement/StepInstance.php#L78-L89
twilio/twilio-php
Twilio/Rest/Trunking/V1/TrunkContext.php
TrunkContext.getOriginationUrls
protected function getOriginationUrls() { if (!$this->_originationUrls) { $this->_originationUrls = new OriginationUrlList($this->version, $this->solution['sid']); } return $this->_originationUrls; }
php
protected function getOriginationUrls() { if (!$this->_originationUrls) { $this->_originationUrls = new OriginationUrlList($this->version, $this->solution['sid']); } return $this->_originationUrls; }
[ "protected", "function", "getOriginationUrls", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_originationUrls", ")", "{", "$", "this", "->", "_originationUrls", "=", "new", "OriginationUrlList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_originationUrls", ";", "}" ]
Access the originationUrls @return \Twilio\Rest\Trunking\V1\Trunk\OriginationUrlList
[ "Access", "the", "originationUrls" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Trunking/V1/TrunkContext.php#L122-L128
twilio/twilio-php
Twilio/Rest/Trunking/V1/TrunkContext.php
TrunkContext.getCredentialsLists
protected function getCredentialsLists() { if (!$this->_credentialsLists) { $this->_credentialsLists = new CredentialListList($this->version, $this->solution['sid']); } return $this->_credentialsLists; }
php
protected function getCredentialsLists() { if (!$this->_credentialsLists) { $this->_credentialsLists = new CredentialListList($this->version, $this->solution['sid']); } return $this->_credentialsLists; }
[ "protected", "function", "getCredentialsLists", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_credentialsLists", ")", "{", "$", "this", "->", "_credentialsLists", "=", "new", "CredentialListList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_credentialsLists", ";", "}" ]
Access the credentialsLists @return \Twilio\Rest\Trunking\V1\Trunk\CredentialListList
[ "Access", "the", "credentialsLists" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Trunking/V1/TrunkContext.php#L135-L141
twilio/twilio-php
Twilio/Rest/Trunking/V1/TrunkContext.php
TrunkContext.getTerminatingSipDomains
protected function getTerminatingSipDomains() { if (!$this->_terminatingSipDomains) { $this->_terminatingSipDomains = new TerminatingSipDomainList( $this->version, $this->solution['sid'] ); } return $this->_terminatingSipDomains; }
php
protected function getTerminatingSipDomains() { if (!$this->_terminatingSipDomains) { $this->_terminatingSipDomains = new TerminatingSipDomainList( $this->version, $this->solution['sid'] ); } return $this->_terminatingSipDomains; }
[ "protected", "function", "getTerminatingSipDomains", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_terminatingSipDomains", ")", "{", "$", "this", "->", "_terminatingSipDomains", "=", "new", "TerminatingSipDomainList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_terminatingSipDomains", ";", "}" ]
Access the terminatingSipDomains @return \Twilio\Rest\Trunking\V1\Trunk\TerminatingSipDomainList
[ "Access", "the", "terminatingSipDomains" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Trunking/V1/TrunkContext.php#L174-L183
twilio/twilio-php
Twilio/Rest/Preview/Wireless/RatePlanList.php
RatePlanList.create
public function create($options = array()) { $options = new Values($options); $data = Values::of(array( 'UniqueName' => $options['uniqueName'], 'FriendlyName' => $options['friendlyName'], 'DataEnabled' => Serialize::booleanToString($options['dataEnabled']), 'DataLimit' => $options['dataLimit'], 'DataMetering' => $options['dataMetering'], 'MessagingEnabled' => Serialize::booleanToString($options['messagingEnabled']), 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']), 'CommandsEnabled' => Serialize::booleanToString($options['commandsEnabled']), 'NationalRoamingEnabled' => Serialize::booleanToString($options['nationalRoamingEnabled']), 'InternationalRoaming' => Serialize::map($options['internationalRoaming'], function($e) { return $e; }), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new RatePlanInstance($this->version, $payload); }
php
public function create($options = array()) { $options = new Values($options); $data = Values::of(array( 'UniqueName' => $options['uniqueName'], 'FriendlyName' => $options['friendlyName'], 'DataEnabled' => Serialize::booleanToString($options['dataEnabled']), 'DataLimit' => $options['dataLimit'], 'DataMetering' => $options['dataMetering'], 'MessagingEnabled' => Serialize::booleanToString($options['messagingEnabled']), 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']), 'CommandsEnabled' => Serialize::booleanToString($options['commandsEnabled']), 'NationalRoamingEnabled' => Serialize::booleanToString($options['nationalRoamingEnabled']), 'InternationalRoaming' => Serialize::map($options['internationalRoaming'], function($e) { return $e; }), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new RatePlanInstance($this->version, $payload); }
[ "public", "function", "create", "(", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'UniqueName'", "=>", "$", "options", "[", "'uniqueName'", "]", ",", "'FriendlyName'", "=>", "$", "options", "[", "'friendlyName'", "]", ",", "'DataEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'dataEnabled'", "]", ")", ",", "'DataLimit'", "=>", "$", "options", "[", "'dataLimit'", "]", ",", "'DataMetering'", "=>", "$", "options", "[", "'dataMetering'", "]", ",", "'MessagingEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'messagingEnabled'", "]", ")", ",", "'VoiceEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'voiceEnabled'", "]", ")", ",", "'CommandsEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'commandsEnabled'", "]", ")", ",", "'NationalRoamingEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'nationalRoamingEnabled'", "]", ")", ",", "'InternationalRoaming'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'internationalRoaming'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "RatePlanInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ")", ";", "}" ]
Create a new RatePlanInstance @param array|Options $options Optional Arguments @return RatePlanInstance Newly created RatePlanInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "RatePlanInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Wireless/RatePlanList.php#L130-L154
twilio/twilio-php
Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsInstance.php
TaskStatisticsInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new TaskStatisticsContext( $this->version, $this->solution['assistantSid'], $this->solution['taskSid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new TaskStatisticsContext( $this->version, $this->solution['assistantSid'], $this->solution['taskSid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "TaskStatisticsContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'assistantSid'", "]", ",", "$", "this", "->", "solution", "[", "'taskSid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Autopilot\V1\Assistant\Task\TaskStatisticsContext Context for this TaskStatisticsInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsInstance.php#L61-L71
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialList.php
CredentialList.create
public function create($username, $password) { $data = Values::of(array('Username' => $username, 'Password' => $password, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new CredentialInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['credentialListSid'] ); }
php
public function create($username, $password) { $data = Values::of(array('Username' => $username, 'Password' => $password, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new CredentialInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['credentialListSid'] ); }
[ "public", "function", "create", "(", "$", "username", ",", "$", "password", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Username'", "=>", "$", "username", ",", "'Password'", "=>", "$", "password", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "CredentialInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'credentialListSid'", "]", ")", ";", "}" ]
Create a new CredentialInstance @param string $username The username for this credential. @param string $password The password will not be returned in the response. @return CredentialInstance Newly created CredentialInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "CredentialInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialList.php#L131-L147
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialList.php
CredentialList.getContext
public function getContext($sid) { return new CredentialContext( $this->version, $this->solution['accountSid'], $this->solution['credentialListSid'], $sid ); }
php
public function getContext($sid) { return new CredentialContext( $this->version, $this->solution['accountSid'], $this->solution['credentialListSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "CredentialContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'credentialListSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a CredentialContext @param string $sid The unique id that identifies the resource to fetch. @return \Twilio\Rest\Api\V2010\Account\Sip\CredentialList\CredentialContext
[ "Constructs", "a", "CredentialContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialList.php#L155-L162
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/CallList.php
CallList.create
public function create($to, $from, $options = array()) { $options = new Values($options); $data = Values::of(array( 'To' => $to, 'From' => $from, 'Url' => $options['url'], 'ApplicationSid' => $options['applicationSid'], 'Method' => $options['method'], 'FallbackUrl' => $options['fallbackUrl'], 'FallbackMethod' => $options['fallbackMethod'], 'StatusCallback' => $options['statusCallback'], 'StatusCallbackEvent' => Serialize::map($options['statusCallbackEvent'], function($e) { return $e; }), 'StatusCallbackMethod' => $options['statusCallbackMethod'], 'SendDigits' => $options['sendDigits'], 'Timeout' => $options['timeout'], 'Record' => Serialize::booleanToString($options['record']), 'RecordingChannels' => $options['recordingChannels'], 'RecordingStatusCallback' => $options['recordingStatusCallback'], 'RecordingStatusCallbackMethod' => $options['recordingStatusCallbackMethod'], 'SipAuthUsername' => $options['sipAuthUsername'], 'SipAuthPassword' => $options['sipAuthPassword'], 'MachineDetection' => $options['machineDetection'], 'MachineDetectionTimeout' => $options['machineDetectionTimeout'], 'RecordingStatusCallbackEvent' => Serialize::map($options['recordingStatusCallbackEvent'], function($e) { return $e; }), 'Trim' => $options['trim'], 'CallerId' => $options['callerId'], 'MachineDetectionSpeechThreshold' => $options['machineDetectionSpeechThreshold'], 'MachineDetectionSpeechEndThreshold' => $options['machineDetectionSpeechEndThreshold'], 'MachineDetectionSilenceTimeout' => $options['machineDetectionSilenceTimeout'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new CallInstance($this->version, $payload, $this->solution['accountSid']); }
php
public function create($to, $from, $options = array()) { $options = new Values($options); $data = Values::of(array( 'To' => $to, 'From' => $from, 'Url' => $options['url'], 'ApplicationSid' => $options['applicationSid'], 'Method' => $options['method'], 'FallbackUrl' => $options['fallbackUrl'], 'FallbackMethod' => $options['fallbackMethod'], 'StatusCallback' => $options['statusCallback'], 'StatusCallbackEvent' => Serialize::map($options['statusCallbackEvent'], function($e) { return $e; }), 'StatusCallbackMethod' => $options['statusCallbackMethod'], 'SendDigits' => $options['sendDigits'], 'Timeout' => $options['timeout'], 'Record' => Serialize::booleanToString($options['record']), 'RecordingChannels' => $options['recordingChannels'], 'RecordingStatusCallback' => $options['recordingStatusCallback'], 'RecordingStatusCallbackMethod' => $options['recordingStatusCallbackMethod'], 'SipAuthUsername' => $options['sipAuthUsername'], 'SipAuthPassword' => $options['sipAuthPassword'], 'MachineDetection' => $options['machineDetection'], 'MachineDetectionTimeout' => $options['machineDetectionTimeout'], 'RecordingStatusCallbackEvent' => Serialize::map($options['recordingStatusCallbackEvent'], function($e) { return $e; }), 'Trim' => $options['trim'], 'CallerId' => $options['callerId'], 'MachineDetectionSpeechThreshold' => $options['machineDetectionSpeechThreshold'], 'MachineDetectionSpeechEndThreshold' => $options['machineDetectionSpeechEndThreshold'], 'MachineDetectionSilenceTimeout' => $options['machineDetectionSilenceTimeout'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new CallInstance($this->version, $payload, $this->solution['accountSid']); }
[ "public", "function", "create", "(", "$", "to", ",", "$", "from", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'To'", "=>", "$", "to", ",", "'From'", "=>", "$", "from", ",", "'Url'", "=>", "$", "options", "[", "'url'", "]", ",", "'ApplicationSid'", "=>", "$", "options", "[", "'applicationSid'", "]", ",", "'Method'", "=>", "$", "options", "[", "'method'", "]", ",", "'FallbackUrl'", "=>", "$", "options", "[", "'fallbackUrl'", "]", ",", "'FallbackMethod'", "=>", "$", "options", "[", "'fallbackMethod'", "]", ",", "'StatusCallback'", "=>", "$", "options", "[", "'statusCallback'", "]", ",", "'StatusCallbackEvent'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'statusCallbackEvent'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'StatusCallbackMethod'", "=>", "$", "options", "[", "'statusCallbackMethod'", "]", ",", "'SendDigits'", "=>", "$", "options", "[", "'sendDigits'", "]", ",", "'Timeout'", "=>", "$", "options", "[", "'timeout'", "]", ",", "'Record'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'record'", "]", ")", ",", "'RecordingChannels'", "=>", "$", "options", "[", "'recordingChannels'", "]", ",", "'RecordingStatusCallback'", "=>", "$", "options", "[", "'recordingStatusCallback'", "]", ",", "'RecordingStatusCallbackMethod'", "=>", "$", "options", "[", "'recordingStatusCallbackMethod'", "]", ",", "'SipAuthUsername'", "=>", "$", "options", "[", "'sipAuthUsername'", "]", ",", "'SipAuthPassword'", "=>", "$", "options", "[", "'sipAuthPassword'", "]", ",", "'MachineDetection'", "=>", "$", "options", "[", "'machineDetection'", "]", ",", "'MachineDetectionTimeout'", "=>", "$", "options", "[", "'machineDetectionTimeout'", "]", ",", "'RecordingStatusCallbackEvent'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'recordingStatusCallbackEvent'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'Trim'", "=>", "$", "options", "[", "'trim'", "]", ",", "'CallerId'", "=>", "$", "options", "[", "'callerId'", "]", ",", "'MachineDetectionSpeechThreshold'", "=>", "$", "options", "[", "'machineDetectionSpeechThreshold'", "]", ",", "'MachineDetectionSpeechEndThreshold'", "=>", "$", "options", "[", "'machineDetectionSpeechEndThreshold'", "]", ",", "'MachineDetectionSilenceTimeout'", "=>", "$", "options", "[", "'machineDetectionSilenceTimeout'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "CallInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}" ]
Create a new CallInstance @param string $to Phone number, SIP address, or client identifier to call @param string $from Twilio number from which to originate the call @param array|Options $options Optional Arguments @return CallInstance Newly created CallInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "CallInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/CallList.php#L52-L92
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/CallList.php
CallList.getFeedbackSummaries
protected function getFeedbackSummaries() { if (!$this->_feedbackSummaries) { $this->_feedbackSummaries = new FeedbackSummaryList($this->version, $this->solution['accountSid']); } return $this->_feedbackSummaries; }
php
protected function getFeedbackSummaries() { if (!$this->_feedbackSummaries) { $this->_feedbackSummaries = new FeedbackSummaryList($this->version, $this->solution['accountSid']); } return $this->_feedbackSummaries; }
[ "protected", "function", "getFeedbackSummaries", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_feedbackSummaries", ")", "{", "$", "this", "->", "_feedbackSummaries", "=", "new", "FeedbackSummaryList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_feedbackSummaries", ";", "}" ]
Access the feedbackSummaries
[ "Access", "the", "feedbackSummaries" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/CallList.php#L197-L203
twilio/twilio-php
Twilio/Rest/Chat/V1/Service/Channel/MessageList.php
MessageList.create
public function create($body, $options = array()) { $options = new Values($options); $data = Values::of(array( 'Body' => $body, 'From' => $options['from'], 'Attributes' => $options['attributes'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new MessageInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['channelSid'] ); }
php
public function create($body, $options = array()) { $options = new Values($options); $data = Values::of(array( 'Body' => $body, 'From' => $options['from'], 'Attributes' => $options['attributes'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new MessageInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['channelSid'] ); }
[ "public", "function", "create", "(", "$", "body", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Body'", "=>", "$", "body", ",", "'From'", "=>", "$", "options", "[", "'from'", "]", ",", "'Attributes'", "=>", "$", "options", "[", "'attributes'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "MessageInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'channelSid'", "]", ")", ";", "}" ]
Create a new MessageInstance @param string $body The body @param array|Options $options Optional Arguments @return MessageInstance Newly created MessageInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "MessageInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V1/Service/Channel/MessageList.php#L44-L66
twilio/twilio-php
Twilio/Rest/Chat/V1/Service/Channel/MessageList.php
MessageList.getContext
public function getContext($sid) { return new MessageContext( $this->version, $this->solution['serviceSid'], $this->solution['channelSid'], $sid ); }
php
public function getContext($sid) { return new MessageContext( $this->version, $this->solution['serviceSid'], $this->solution['channelSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "MessageContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'channelSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a MessageContext @param string $sid The sid @return \Twilio\Rest\Chat\V1\Service\Channel\MessageContext
[ "Constructs", "a", "MessageContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V1/Service/Channel/MessageList.php#L165-L172
twilio/twilio-php
Twilio/Rest/Pricing/V1/Voice/NumberInstance.php
NumberInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new NumberContext($this->version, $this->solution['number']); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new NumberContext($this->version, $this->solution['number']); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "NumberContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'number'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Pricing\V1\Voice\NumberContext Context for this NumberInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Pricing/V1/Voice/NumberInstance.php#L59-L65
twilio/twilio-php
Twilio/Rest/Trunking/V1/Trunk/TerminatingSipDomainInstance.php
TerminatingSipDomainInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new TerminatingSipDomainContext( $this->version, $this->solution['trunkSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new TerminatingSipDomainContext( $this->version, $this->solution['trunkSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "TerminatingSipDomainContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'trunkSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Trunking\V1\Trunk\TerminatingSipDomainContext Context for this TerminatingSipDomainInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Trunking/V1/Trunk/TerminatingSipDomainInstance.php#L84-L94
twilio/twilio-php
Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionInstance.php
AvailableAddOnExtensionInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new AvailableAddOnExtensionContext( $this->version, $this->solution['availableAddOnSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new AvailableAddOnExtensionContext( $this->version, $this->solution['availableAddOnSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "AvailableAddOnExtensionContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'availableAddOnSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Preview\Marketplace\AvailableAddOn\AvailableAddOnExtensionContext Context for this AvailableAddOnExtensionInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionInstance.php#L63-L73
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberInstance.php
IncomingPhoneNumberInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new IncomingPhoneNumberContext( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new IncomingPhoneNumberContext( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "IncomingPhoneNumberContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberContext Context for this IncomingPhoneNumberInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberInstance.php#L111-L121
twilio/twilio-php
Twilio/Rest/Pricing/V1/VoiceList.php
VoiceList.getNumbers
protected function getNumbers() { if (!$this->_numbers) { $this->_numbers = new NumberList($this->version); } return $this->_numbers; }
php
protected function getNumbers() { if (!$this->_numbers) { $this->_numbers = new NumberList($this->version); } return $this->_numbers; }
[ "protected", "function", "getNumbers", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_numbers", ")", "{", "$", "this", "->", "_numbers", "=", "new", "NumberList", "(", "$", "this", "->", "version", ")", ";", "}", "return", "$", "this", "->", "_numbers", ";", "}" ]
Access the numbers
[ "Access", "the", "numbers" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Pricing/V1/VoiceList.php#L44-L50
twilio/twilio-php
Twilio/Values.php
Values.offsetGet
public function offsetGet($offset) { $offset = strtolower($offset); return array_key_exists($offset, $this->options) ? $this->options[$offset] : self::NONE; }
php
public function offsetGet($offset) { $offset = strtolower($offset); return array_key_exists($offset, $this->options) ? $this->options[$offset] : self::NONE; }
[ "public", "function", "offsetGet", "(", "$", "offset", ")", "{", "$", "offset", "=", "strtolower", "(", "$", "offset", ")", ";", "return", "array_key_exists", "(", "$", "offset", ",", "$", "this", "->", "options", ")", "?", "$", "this", "->", "options", "[", "$", "offset", "]", ":", "self", "::", "NONE", ";", "}" ]
(PHP 5 &gt;= 5.0.0)<br/> Offset to retrieve @link http://php.net/manual/en/arrayaccess.offsetget.php @param mixed $offset <p> The offset to retrieve. </p> @return mixed Can return all value types.
[ "(", "PHP", "5", "&gt", ";", "=", "5", ".", "0", ".", "0", ")", "<br", "/", ">", "Offset", "to", "retrieve" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Values.php#L62-L65
twilio/twilio-php
Twilio/Rest/Preview/BulkExports/ExportInstance.php
ExportInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new ExportContext($this->version, $this->solution['resourceType']); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new ExportContext($this->version, $this->solution['resourceType']); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "ExportContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'resourceType'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Preview\BulkExports\ExportContext Context for this ExportInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/BulkExports/ExportInstance.php#L55-L61
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionList.php
AssignedAddOnExtensionList.getContext
public function getContext($sid) { return new AssignedAddOnExtensionContext( $this->version, $this->solution['accountSid'], $this->solution['resourceSid'], $this->solution['assignedAddOnSid'], $sid ); }
php
public function getContext($sid) { return new AssignedAddOnExtensionContext( $this->version, $this->solution['accountSid'], $this->solution['resourceSid'], $this->solution['assignedAddOnSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "AssignedAddOnExtensionContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'resourceSid'", "]", ",", "$", "this", "->", "solution", "[", "'assignedAddOnSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a AssignedAddOnExtensionContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumber\AssignedAddOn\AssignedAddOnExtensionContext
[ "Constructs", "a", "AssignedAddOnExtensionContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionList.php#L139-L147
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/ValidationRequestList.php
ValidationRequestList.create
public function create($phoneNumber, $options = array()) { $options = new Values($options); $data = Values::of(array( 'PhoneNumber' => $phoneNumber, 'FriendlyName' => $options['friendlyName'], 'CallDelay' => $options['callDelay'], 'Extension' => $options['extension'], 'StatusCallback' => $options['statusCallback'], 'StatusCallbackMethod' => $options['statusCallbackMethod'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new ValidationRequestInstance($this->version, $payload, $this->solution['accountSid']); }
php
public function create($phoneNumber, $options = array()) { $options = new Values($options); $data = Values::of(array( 'PhoneNumber' => $phoneNumber, 'FriendlyName' => $options['friendlyName'], 'CallDelay' => $options['callDelay'], 'Extension' => $options['extension'], 'StatusCallback' => $options['statusCallback'], 'StatusCallbackMethod' => $options['statusCallbackMethod'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new ValidationRequestInstance($this->version, $payload, $this->solution['accountSid']); }
[ "public", "function", "create", "(", "$", "phoneNumber", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'PhoneNumber'", "=>", "$", "phoneNumber", ",", "'FriendlyName'", "=>", "$", "options", "[", "'friendlyName'", "]", ",", "'CallDelay'", "=>", "$", "options", "[", "'callDelay'", "]", ",", "'Extension'", "=>", "$", "options", "[", "'extension'", "]", ",", "'StatusCallback'", "=>", "$", "options", "[", "'statusCallback'", "]", ",", "'StatusCallbackMethod'", "=>", "$", "options", "[", "'statusCallbackMethod'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "ValidationRequestInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}" ]
Create a new ValidationRequestInstance @param string $phoneNumber The phone number to verify in E.164 format @param array|Options $options Optional Arguments @return ValidationRequestInstance Newly created ValidationRequestInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "ValidationRequestInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/ValidationRequestList.php#L42-L62
twilio/twilio-php
Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeList.php
ChallengeList.create
public function create($options = array()) { $options = new Values($options); $data = Values::of(array( 'ExpirationDate' => Serialize::iso8601DateTime($options['expirationDate']), 'Details' => $options['details'], 'HiddenDetails' => $options['hiddenDetails'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new ChallengeInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['identity'], $this->solution['factorSid'] ); }
php
public function create($options = array()) { $options = new Values($options); $data = Values::of(array( 'ExpirationDate' => Serialize::iso8601DateTime($options['expirationDate']), 'Details' => $options['details'], 'HiddenDetails' => $options['hiddenDetails'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new ChallengeInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['identity'], $this->solution['factorSid'] ); }
[ "public", "function", "create", "(", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'ExpirationDate'", "=>", "Serialize", "::", "iso8601DateTime", "(", "$", "options", "[", "'expirationDate'", "]", ")", ",", "'Details'", "=>", "$", "options", "[", "'details'", "]", ",", "'HiddenDetails'", "=>", "$", "options", "[", "'hiddenDetails'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "ChallengeInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'identity'", "]", ",", "$", "this", "->", "solution", "[", "'factorSid'", "]", ")", ";", "}" ]
Create a new ChallengeInstance @param array|Options $options Optional Arguments @return ChallengeInstance Newly created ChallengeInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "ChallengeInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeList.php#L51-L74
twilio/twilio-php
Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeList.php
ChallengeList.getContext
public function getContext($sid) { return new ChallengeContext( $this->version, $this->solution['serviceSid'], $this->solution['identity'], $this->solution['factorSid'], $sid ); }
php
public function getContext($sid) { return new ChallengeContext( $this->version, $this->solution['serviceSid'], $this->solution['identity'], $this->solution['factorSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "ChallengeContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'identity'", "]", ",", "$", "this", "->", "solution", "[", "'factorSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a ChallengeContext @param string $sid A string that uniquely identifies this Challenge, or `latest`. @return \Twilio\Rest\Authy\V1\Service\Entity\Factor\ChallengeContext
[ "Constructs", "a", "ChallengeContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Authy/V1/Service/Entity/Factor/ChallengeList.php#L83-L91
twilio/twilio-php
Twilio/Rest/Trunking/V1/Trunk/OriginationUrlInstance.php
OriginationUrlInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new OriginationUrlContext( $this->version, $this->solution['trunkSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new OriginationUrlContext( $this->version, $this->solution['trunkSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "OriginationUrlContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'trunkSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Trunking\V1\Trunk\OriginationUrlContext Context for this OriginationUrlInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlInstance.php#L71-L81
twilio/twilio-php
Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueList.php
FieldValueList.create
public function create($language, $value, $options = array()) { $options = new Values($options); $data = Values::of(array( 'Language' => $language, 'Value' => $value, 'SynonymOf' => $options['synonymOf'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FieldValueInstance( $this->version, $payload, $this->solution['assistantSid'], $this->solution['fieldTypeSid'] ); }
php
public function create($language, $value, $options = array()) { $options = new Values($options); $data = Values::of(array( 'Language' => $language, 'Value' => $value, 'SynonymOf' => $options['synonymOf'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FieldValueInstance( $this->version, $payload, $this->solution['assistantSid'], $this->solution['fieldTypeSid'] ); }
[ "public", "function", "create", "(", "$", "language", ",", "$", "value", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Language'", "=>", "$", "language", ",", "'Value'", "=>", "$", "value", ",", "'SynonymOf'", "=>", "$", "options", "[", "'synonymOf'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "FieldValueInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'assistantSid'", "]", ",", "$", "this", "->", "solution", "[", "'fieldTypeSid'", "]", ")", ";", "}" ]
Create a new FieldValueInstance @param string $language The ISO language-country tag that identifies the language of the value @param string $value The Field Value data @param array|Options $options Optional Arguments @return FieldValueInstance Newly created FieldValueInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "FieldValueInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueList.php#L141-L163
twilio/twilio-php
Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueList.php
FieldValueList.getContext
public function getContext($sid) { return new FieldValueContext( $this->version, $this->solution['assistantSid'], $this->solution['fieldTypeSid'], $sid ); }
php
public function getContext($sid) { return new FieldValueContext( $this->version, $this->solution['assistantSid'], $this->solution['fieldTypeSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "FieldValueContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'assistantSid'", "]", ",", "$", "this", "->", "solution", "[", "'fieldTypeSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a FieldValueContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Autopilot\V1\Assistant\FieldType\FieldValueContext
[ "Constructs", "a", "FieldValueContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueList.php#L171-L178
twilio/twilio-php
Twilio/Rest/Voice/V1/DialingPermissions/BulkCountryUpdateList.php
BulkCountryUpdateList.create
public function create($updateRequest) { $data = Values::of(array('UpdateRequest' => $updateRequest, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new BulkCountryUpdateInstance($this->version, $payload); }
php
public function create($updateRequest) { $data = Values::of(array('UpdateRequest' => $updateRequest, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new BulkCountryUpdateInstance($this->version, $payload); }
[ "public", "function", "create", "(", "$", "updateRequest", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'UpdateRequest'", "=>", "$", "updateRequest", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "BulkCountryUpdateInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ")", ";", "}" ]
Create a new BulkCountryUpdateInstance @param string $updateRequest URL encoded JSON array of update objects @return BulkCountryUpdateInstance Newly created BulkCountryUpdateInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "BulkCountryUpdateInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Voice/V1/DialingPermissions/BulkCountryUpdateList.php#L42-L53
twilio/twilio-php
Twilio/Rest/Messaging/V1/SessionContext.php
SessionContext.update
public function update($options = array()) { $options = new Values($options); $data = Values::of(array( 'FriendlyName' => $options['friendlyName'], 'Attributes' => $options['attributes'], 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']), 'DateUpdated' => Serialize::iso8601DateTime($options['dateUpdated']), 'CreatedBy' => $options['createdBy'], )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new SessionInstance($this->version, $payload, $this->solution['sid']); }
php
public function update($options = array()) { $options = new Values($options); $data = Values::of(array( 'FriendlyName' => $options['friendlyName'], 'Attributes' => $options['attributes'], 'DateCreated' => Serialize::iso8601DateTime($options['dateCreated']), 'DateUpdated' => Serialize::iso8601DateTime($options['dateUpdated']), 'CreatedBy' => $options['createdBy'], )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new SessionInstance($this->version, $payload, $this->solution['sid']); }
[ "public", "function", "update", "(", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'FriendlyName'", "=>", "$", "options", "[", "'friendlyName'", "]", ",", "'Attributes'", "=>", "$", "options", "[", "'attributes'", "]", ",", "'DateCreated'", "=>", "Serialize", "::", "iso8601DateTime", "(", "$", "options", "[", "'dateCreated'", "]", ")", ",", "'DateUpdated'", "=>", "Serialize", "::", "iso8601DateTime", "(", "$", "options", "[", "'dateUpdated'", "]", ")", ",", "'CreatedBy'", "=>", "$", "options", "[", "'createdBy'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "update", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "SessionInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}" ]
Update the SessionInstance @param array|Options $options Optional Arguments @return SessionInstance Updated SessionInstance @throws TwilioException When an HTTP error occurs.
[ "Update", "the", "SessionInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Messaging/V1/SessionContext.php#L89-L108
twilio/twilio-php
Twilio/Rest/Messaging/V1/SessionContext.php
SessionContext.getWebhooks
protected function getWebhooks() { if (!$this->_webhooks) { $this->_webhooks = new WebhookList($this->version, $this->solution['sid']); } return $this->_webhooks; }
php
protected function getWebhooks() { if (!$this->_webhooks) { $this->_webhooks = new WebhookList($this->version, $this->solution['sid']); } return $this->_webhooks; }
[ "protected", "function", "getWebhooks", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_webhooks", ")", "{", "$", "this", "->", "_webhooks", "=", "new", "WebhookList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_webhooks", ";", "}" ]
Access the webhooks @return \Twilio\Rest\Messaging\V1\Session\WebhookList
[ "Access", "the", "webhooks" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Messaging/V1/SessionContext.php#L141-L147
twilio/twilio-php
Twilio/Rest/Proxy/V1/Service/Session/InteractionList.php
InteractionList.getContext
public function getContext($sid) { return new InteractionContext( $this->version, $this->solution['serviceSid'], $this->solution['sessionSid'], $sid ); }
php
public function getContext($sid) { return new InteractionContext( $this->version, $this->solution['serviceSid'], $this->solution['sessionSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "InteractionContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sessionSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a InteractionContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Proxy\V1\Service\Session\InteractionContext
[ "Constructs", "a", "InteractionContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Proxy/V1/Service/Session/InteractionList.php#L129-L136
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/WorkflowContext.php
WorkflowContext.update
public function update($options = array()) { $options = new Values($options); $data = Values::of(array( 'FriendlyName' => $options['friendlyName'], 'AssignmentCallbackUrl' => $options['assignmentCallbackUrl'], 'FallbackAssignmentCallbackUrl' => $options['fallbackAssignmentCallbackUrl'], 'Configuration' => $options['configuration'], 'TaskReservationTimeout' => $options['taskReservationTimeout'], )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new WorkflowInstance( $this->version, $payload, $this->solution['workspaceSid'], $this->solution['sid'] ); }
php
public function update($options = array()) { $options = new Values($options); $data = Values::of(array( 'FriendlyName' => $options['friendlyName'], 'AssignmentCallbackUrl' => $options['assignmentCallbackUrl'], 'FallbackAssignmentCallbackUrl' => $options['fallbackAssignmentCallbackUrl'], 'Configuration' => $options['configuration'], 'TaskReservationTimeout' => $options['taskReservationTimeout'], )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new WorkflowInstance( $this->version, $payload, $this->solution['workspaceSid'], $this->solution['sid'] ); }
[ "public", "function", "update", "(", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'FriendlyName'", "=>", "$", "options", "[", "'friendlyName'", "]", ",", "'AssignmentCallbackUrl'", "=>", "$", "options", "[", "'assignmentCallbackUrl'", "]", ",", "'FallbackAssignmentCallbackUrl'", "=>", "$", "options", "[", "'fallbackAssignmentCallbackUrl'", "]", ",", "'Configuration'", "=>", "$", "options", "[", "'configuration'", "]", ",", "'TaskReservationTimeout'", "=>", "$", "options", "[", "'taskReservationTimeout'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "update", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "WorkflowInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}" ]
Update the WorkflowInstance @param array|Options $options Optional Arguments @return WorkflowInstance Updated WorkflowInstance @throws TwilioException When an HTTP error occurs.
[ "Update", "the", "WorkflowInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowContext.php#L81-L105
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/WorkflowContext.php
WorkflowContext.getStatistics
protected function getStatistics() { if (!$this->_statistics) { $this->_statistics = new WorkflowStatisticsList( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->_statistics; }
php
protected function getStatistics() { if (!$this->_statistics) { $this->_statistics = new WorkflowStatisticsList( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->_statistics; }
[ "protected", "function", "getStatistics", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_statistics", ")", "{", "$", "this", "->", "_statistics", "=", "new", "WorkflowStatisticsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_statistics", ";", "}" ]
Access the statistics @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowStatisticsList
[ "Access", "the", "statistics" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowContext.php#L122-L132
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/WorkflowContext.php
WorkflowContext.getRealTimeStatistics
protected function getRealTimeStatistics() { if (!$this->_realTimeStatistics) { $this->_realTimeStatistics = new WorkflowRealTimeStatisticsList( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->_realTimeStatistics; }
php
protected function getRealTimeStatistics() { if (!$this->_realTimeStatistics) { $this->_realTimeStatistics = new WorkflowRealTimeStatisticsList( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->_realTimeStatistics; }
[ "protected", "function", "getRealTimeStatistics", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_realTimeStatistics", ")", "{", "$", "this", "->", "_realTimeStatistics", "=", "new", "WorkflowRealTimeStatisticsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_realTimeStatistics", ";", "}" ]
Access the realTimeStatistics @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowRealTimeStatisticsList
[ "Access", "the", "realTimeStatistics" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowContext.php#L139-L149
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/WorkflowContext.php
WorkflowContext.getCumulativeStatistics
protected function getCumulativeStatistics() { if (!$this->_cumulativeStatistics) { $this->_cumulativeStatistics = new WorkflowCumulativeStatisticsList( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->_cumulativeStatistics; }
php
protected function getCumulativeStatistics() { if (!$this->_cumulativeStatistics) { $this->_cumulativeStatistics = new WorkflowCumulativeStatisticsList( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->_cumulativeStatistics; }
[ "protected", "function", "getCumulativeStatistics", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_cumulativeStatistics", ")", "{", "$", "this", "->", "_cumulativeStatistics", "=", "new", "WorkflowCumulativeStatisticsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_cumulativeStatistics", ";", "}" ]
Access the cumulativeStatistics @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowCumulativeStatisticsList
[ "Access", "the", "cumulativeStatistics" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowContext.php#L156-L166
twilio/twilio-php
Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemList.php
SyncMapItemList.create
public function create($key, $data) { $data = Values::of(array('Key' => $key, 'Data' => Serialize::jsonObject($data), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new SyncMapItemInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['mapSid'] ); }
php
public function create($key, $data) { $data = Values::of(array('Key' => $key, 'Data' => Serialize::jsonObject($data), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new SyncMapItemInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['mapSid'] ); }
[ "public", "function", "create", "(", "$", "key", ",", "$", "data", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Key'", "=>", "$", "key", ",", "'Data'", "=>", "Serialize", "::", "jsonObject", "(", "$", "data", ")", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "SyncMapItemInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'mapSid'", "]", ")", ";", "}" ]
Create a new SyncMapItemInstance @param string $key The key @param array $data The data @return SyncMapItemInstance Newly created SyncMapItemInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "SyncMapItemInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemList.php#L47-L63
twilio/twilio-php
Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemList.php
SyncMapItemList.getContext
public function getContext($key) { return new SyncMapItemContext( $this->version, $this->solution['serviceSid'], $this->solution['mapSid'], $key ); }
php
public function getContext($key) { return new SyncMapItemContext( $this->version, $this->solution['serviceSid'], $this->solution['mapSid'], $key ); }
[ "public", "function", "getContext", "(", "$", "key", ")", "{", "return", "new", "SyncMapItemContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'mapSid'", "]", ",", "$", "key", ")", ";", "}" ]
Constructs a SyncMapItemContext @param string $key The key @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapItemContext
[ "Constructs", "a", "SyncMapItemContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemList.php#L164-L171
twilio/twilio-php
Twilio/Rest/Notify/V1/Service/BindingList.php
BindingList.create
public function create($identity, $bindingType, $address, $options = array()) { $options = new Values($options); $data = Values::of(array( 'Identity' => $identity, 'BindingType' => $bindingType, 'Address' => $address, 'Tag' => Serialize::map($options['tag'], function($e) { return $e; }), 'NotificationProtocolVersion' => $options['notificationProtocolVersion'], 'CredentialSid' => $options['credentialSid'], 'Endpoint' => $options['endpoint'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new BindingInstance($this->version, $payload, $this->solution['serviceSid']); }
php
public function create($identity, $bindingType, $address, $options = array()) { $options = new Values($options); $data = Values::of(array( 'Identity' => $identity, 'BindingType' => $bindingType, 'Address' => $address, 'Tag' => Serialize::map($options['tag'], function($e) { return $e; }), 'NotificationProtocolVersion' => $options['notificationProtocolVersion'], 'CredentialSid' => $options['credentialSid'], 'Endpoint' => $options['endpoint'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new BindingInstance($this->version, $payload, $this->solution['serviceSid']); }
[ "public", "function", "create", "(", "$", "identity", ",", "$", "bindingType", ",", "$", "address", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Identity'", "=>", "$", "identity", ",", "'BindingType'", "=>", "$", "bindingType", ",", "'Address'", "=>", "$", "address", ",", "'Tag'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'tag'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'NotificationProtocolVersion'", "=>", "$", "options", "[", "'notificationProtocolVersion'", "]", ",", "'CredentialSid'", "=>", "$", "options", "[", "'credentialSid'", "]", ",", "'Endpoint'", "=>", "$", "options", "[", "'endpoint'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "BindingInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ")", ";", "}" ]
Create a new BindingInstance @param string $identity The `identity` value that identifies the new resource's User @param string $bindingType The type of the Binding @param string $address The channel-specific address @param array|Options $options Optional Arguments @return BindingInstance Newly created BindingInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "BindingInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Notify/V1/Service/BindingList.php#L50-L71
twilio/twilio-php
Twilio/Rest/Trunking/V1/Trunk/OriginationUrlList.php
OriginationUrlList.create
public function create($weight, $priority, $enabled, $friendlyName, $sipUrl) { $data = Values::of(array( 'Weight' => $weight, 'Priority' => $priority, 'Enabled' => Serialize::booleanToString($enabled), 'FriendlyName' => $friendlyName, 'SipUrl' => $sipUrl, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new OriginationUrlInstance($this->version, $payload, $this->solution['trunkSid']); }
php
public function create($weight, $priority, $enabled, $friendlyName, $sipUrl) { $data = Values::of(array( 'Weight' => $weight, 'Priority' => $priority, 'Enabled' => Serialize::booleanToString($enabled), 'FriendlyName' => $friendlyName, 'SipUrl' => $sipUrl, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new OriginationUrlInstance($this->version, $payload, $this->solution['trunkSid']); }
[ "public", "function", "create", "(", "$", "weight", ",", "$", "priority", ",", "$", "enabled", ",", "$", "friendlyName", ",", "$", "sipUrl", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Weight'", "=>", "$", "weight", ",", "'Priority'", "=>", "$", "priority", ",", "'Enabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "enabled", ")", ",", "'FriendlyName'", "=>", "$", "friendlyName", ",", "'SipUrl'", "=>", "$", "sipUrl", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "OriginationUrlInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'trunkSid'", "]", ")", ";", "}" ]
Create a new OriginationUrlInstance @param integer $weight The value that determines the relative load the URI should receive compared to others with the same priority @param integer $priority The relative importance of the URI @param boolean $enabled Whether the URL is enabled @param string $friendlyName A string to describe the resource @param string $sipUrl The SIP address you want Twilio to route your Origination calls to @return OriginationUrlInstance Newly created OriginationUrlInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "OriginationUrlInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlList.php#L48-L65
twilio/twilio-php
Twilio/Rest/Serverless/V1/Service/Environment/VariableList.php
VariableList.create
public function create($key, $value) { $data = Values::of(array('Key' => $key, 'Value' => $value, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new VariableInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['environmentSid'] ); }
php
public function create($key, $value) { $data = Values::of(array('Key' => $key, 'Value' => $value, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new VariableInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['environmentSid'] ); }
[ "public", "function", "create", "(", "$", "key", ",", "$", "value", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Key'", "=>", "$", "key", ",", "'Value'", "=>", "$", "value", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "VariableInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'environmentSid'", "]", ")", ";", "}" ]
Create a new VariableInstance @param string $key A string by which this Variable can be referenced. @param string $value A string that contains the actual value of this Variable. @return VariableInstance Newly created VariableInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "VariableInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/Service/Environment/VariableList.php#L132-L148
twilio/twilio-php
Twilio/Rest/Serverless/V1/Service/Environment/VariableList.php
VariableList.getContext
public function getContext($sid) { return new VariableContext( $this->version, $this->solution['serviceSid'], $this->solution['environmentSid'], $sid ); }
php
public function getContext($sid) { return new VariableContext( $this->version, $this->solution['serviceSid'], $this->solution['environmentSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "VariableContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'environmentSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a VariableContext @param string $sid Variable Sid. @return \Twilio\Rest\Serverless\V1\Service\Environment\VariableContext
[ "Constructs", "a", "VariableContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/Service/Environment/VariableList.php#L156-L163
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelInstance.php
WorkerChannelInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new WorkerChannelContext( $this->version, $this->solution['workspaceSid'], $this->solution['workerSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new WorkerChannelContext( $this->version, $this->solution['workspaceSid'], $this->solution['workerSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "WorkerChannelContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "this", "->", "solution", "[", "'workerSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkerChannelContext Context for this WorkerChannelInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelInstance.php#L80-L91
twilio/twilio-php
Twilio/Rest/Preview/Understand/AssistantContext.php
AssistantContext.getAssistantFallbackActions
protected function getAssistantFallbackActions() { if (!$this->_assistantFallbackActions) { $this->_assistantFallbackActions = new AssistantFallbackActionsList( $this->version, $this->solution['sid'] ); } return $this->_assistantFallbackActions; }
php
protected function getAssistantFallbackActions() { if (!$this->_assistantFallbackActions) { $this->_assistantFallbackActions = new AssistantFallbackActionsList( $this->version, $this->solution['sid'] ); } return $this->_assistantFallbackActions; }
[ "protected", "function", "getAssistantFallbackActions", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_assistantFallbackActions", ")", "{", "$", "this", "->", "_assistantFallbackActions", "=", "new", "AssistantFallbackActionsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_assistantFallbackActions", ";", "}" ]
Access the assistantFallbackActions @return \Twilio\Rest\Preview\Understand\Assistant\AssistantFallbackActionsList
[ "Access", "the", "assistantFallbackActions" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Understand/AssistantContext.php#L190-L199
twilio/twilio-php
Twilio/Rest/Preview/Understand/AssistantContext.php
AssistantContext.getAssistantInitiationActions
protected function getAssistantInitiationActions() { if (!$this->_assistantInitiationActions) { $this->_assistantInitiationActions = new AssistantInitiationActionsList( $this->version, $this->solution['sid'] ); } return $this->_assistantInitiationActions; }
php
protected function getAssistantInitiationActions() { if (!$this->_assistantInitiationActions) { $this->_assistantInitiationActions = new AssistantInitiationActionsList( $this->version, $this->solution['sid'] ); } return $this->_assistantInitiationActions; }
[ "protected", "function", "getAssistantInitiationActions", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_assistantInitiationActions", ")", "{", "$", "this", "->", "_assistantInitiationActions", "=", "new", "AssistantInitiationActionsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_assistantInitiationActions", ";", "}" ]
Access the assistantInitiationActions @return \Twilio\Rest\Preview\Understand\Assistant\AssistantInitiationActionsList
[ "Access", "the", "assistantInitiationActions" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Understand/AssistantContext.php#L206-L215
twilio/twilio-php
Twilio/Rest/Messaging/V1/Service/PhoneNumberList.php
PhoneNumberList.create
public function create($phoneNumberSid) { $data = Values::of(array('PhoneNumberSid' => $phoneNumberSid, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new PhoneNumberInstance($this->version, $payload, $this->solution['serviceSid']); }
php
public function create($phoneNumberSid) { $data = Values::of(array('PhoneNumberSid' => $phoneNumberSid, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new PhoneNumberInstance($this->version, $payload, $this->solution['serviceSid']); }
[ "public", "function", "create", "(", "$", "phoneNumberSid", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'PhoneNumberSid'", "=>", "$", "phoneNumberSid", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "PhoneNumberInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ")", ";", "}" ]
Create a new PhoneNumberInstance @param string $phoneNumberSid Phone Number SID for the Phone Number being added to the Service. @return PhoneNumberInstance Newly created PhoneNumberInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "PhoneNumberInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Messaging/V1/Service/PhoneNumberList.php#L44-L55
twilio/twilio-php
Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemInstance.php
SyncMapItemInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new SyncMapItemContext( $this->version, $this->solution['serviceSid'], $this->solution['mapSid'], $this->solution['key'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new SyncMapItemContext( $this->version, $this->solution['serviceSid'], $this->solution['mapSid'], $this->solution['key'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "SyncMapItemContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'mapSid'", "]", ",", "$", "this", "->", "solution", "[", "'key'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapItemContext Context for this SyncMapItemInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemInstance.php#L76-L87
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsInstance.php
WorkflowRealTimeStatisticsInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new WorkflowRealTimeStatisticsContext( $this->version, $this->solution['workspaceSid'], $this->solution['workflowSid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new WorkflowRealTimeStatisticsContext( $this->version, $this->solution['workspaceSid'], $this->solution['workflowSid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "WorkflowRealTimeStatisticsContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "this", "->", "solution", "[", "'workflowSid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowRealTimeStatisticsContext Context for this WorkflowRealTimeStatisticsInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsInstance.php#L65-L75
twilio/twilio-php
Twilio/Rest/Voice/V1/DialingPermissions/SettingsContext.php
SettingsContext.fetch
public function fetch() { $params = Values::of(array()); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new SettingsInstance($this->version, $payload); }
php
public function fetch() { $params = Values::of(array()); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new SettingsInstance($this->version, $payload); }
[ "public", "function", "fetch", "(", ")", "{", "$", "params", "=", "Values", "::", "of", "(", "array", "(", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "fetch", "(", "'GET'", ",", "$", "this", "->", "uri", ",", "$", "params", ")", ";", "return", "new", "SettingsInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ")", ";", "}" ]
Fetch a SettingsInstance @return SettingsInstance Fetched SettingsInstance @throws TwilioException When an HTTP error occurs.
[ "Fetch", "a", "SettingsInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Voice/V1/DialingPermissions/SettingsContext.php#L43-L53
twilio/twilio-php
Twilio/Rest/Voice/V1/DialingPermissions/SettingsContext.php
SettingsContext.update
public function update($options = array()) { $options = new Values($options); $data = Values::of(array( 'DialingPermissionsInheritance' => Serialize::booleanToString($options['dialingPermissionsInheritance']), )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new SettingsInstance($this->version, $payload); }
php
public function update($options = array()) { $options = new Values($options); $data = Values::of(array( 'DialingPermissionsInheritance' => Serialize::booleanToString($options['dialingPermissionsInheritance']), )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new SettingsInstance($this->version, $payload); }
[ "public", "function", "update", "(", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'DialingPermissionsInheritance'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'dialingPermissionsInheritance'", "]", ")", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "update", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "SettingsInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ")", ";", "}" ]
Update the SettingsInstance @param array|Options $options Optional Arguments @return SettingsInstance Updated SettingsInstance @throws TwilioException When an HTTP error occurs.
[ "Update", "the", "SettingsInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Voice/V1/DialingPermissions/SettingsContext.php#L62-L77
twilio/twilio-php
Twilio/Rest/Studio/V1/Flow/ExecutionContext.php
ExecutionContext.getSteps
protected function getSteps() { if (!$this->_steps) { $this->_steps = new ExecutionStepList( $this->version, $this->solution['flowSid'], $this->solution['sid'] ); } return $this->_steps; }
php
protected function getSteps() { if (!$this->_steps) { $this->_steps = new ExecutionStepList( $this->version, $this->solution['flowSid'], $this->solution['sid'] ); } return $this->_steps; }
[ "protected", "function", "getSteps", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_steps", ")", "{", "$", "this", "->", "_steps", "=", "new", "ExecutionStepList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'flowSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_steps", ";", "}" ]
Access the steps @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionStepList
[ "Access", "the", "steps" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/Flow/ExecutionContext.php#L84-L94
twilio/twilio-php
Twilio/Rest/Studio/V1/Flow/ExecutionContext.php
ExecutionContext.getExecutionContext
protected function getExecutionContext() { if (!$this->_executionContext) { $this->_executionContext = new ExecutionContextList( $this->version, $this->solution['flowSid'], $this->solution['sid'] ); } return $this->_executionContext; }
php
protected function getExecutionContext() { if (!$this->_executionContext) { $this->_executionContext = new ExecutionContextList( $this->version, $this->solution['flowSid'], $this->solution['sid'] ); } return $this->_executionContext; }
[ "protected", "function", "getExecutionContext", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_executionContext", ")", "{", "$", "this", "->", "_executionContext", "=", "new", "ExecutionContextList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'flowSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_executionContext", ";", "}" ]
Access the executionContext @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionContextList
[ "Access", "the", "executionContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/Flow/ExecutionContext.php#L101-L111
twilio/twilio-php
Twilio/Rest/Video/V1/Room/Participant/PublishedTrackInstance.php
PublishedTrackInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new PublishedTrackContext( $this->version, $this->solution['roomSid'], $this->solution['participantSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new PublishedTrackContext( $this->version, $this->solution['roomSid'], $this->solution['participantSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "PublishedTrackContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'roomSid'", "]", ",", "$", "this", "->", "solution", "[", "'participantSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Video\V1\Room\Participant\PublishedTrackContext Context for this PublishedTrackInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackInstance.php#L74-L85
twilio/twilio-php
Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderList.php
HostedNumberOrderList.create
public function create($phoneNumber, $smsCapability, $options = array()) { $options = new Values($options); $data = Values::of(array( 'PhoneNumber' => $phoneNumber, 'SmsCapability' => Serialize::booleanToString($smsCapability), 'AccountSid' => $options['accountSid'], 'FriendlyName' => $options['friendlyName'], 'UniqueName' => $options['uniqueName'], 'CcEmails' => Serialize::map($options['ccEmails'], function($e) { return $e; }), 'SmsUrl' => $options['smsUrl'], 'SmsMethod' => $options['smsMethod'], 'SmsFallbackUrl' => $options['smsFallbackUrl'], 'SmsFallbackMethod' => $options['smsFallbackMethod'], 'StatusCallbackUrl' => $options['statusCallbackUrl'], 'StatusCallbackMethod' => $options['statusCallbackMethod'], 'SmsApplicationSid' => $options['smsApplicationSid'], 'AddressSid' => $options['addressSid'], 'Email' => $options['email'], 'VerificationType' => $options['verificationType'], 'VerificationDocumentSid' => $options['verificationDocumentSid'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new HostedNumberOrderInstance($this->version, $payload); }
php
public function create($phoneNumber, $smsCapability, $options = array()) { $options = new Values($options); $data = Values::of(array( 'PhoneNumber' => $phoneNumber, 'SmsCapability' => Serialize::booleanToString($smsCapability), 'AccountSid' => $options['accountSid'], 'FriendlyName' => $options['friendlyName'], 'UniqueName' => $options['uniqueName'], 'CcEmails' => Serialize::map($options['ccEmails'], function($e) { return $e; }), 'SmsUrl' => $options['smsUrl'], 'SmsMethod' => $options['smsMethod'], 'SmsFallbackUrl' => $options['smsFallbackUrl'], 'SmsFallbackMethod' => $options['smsFallbackMethod'], 'StatusCallbackUrl' => $options['statusCallbackUrl'], 'StatusCallbackMethod' => $options['statusCallbackMethod'], 'SmsApplicationSid' => $options['smsApplicationSid'], 'AddressSid' => $options['addressSid'], 'Email' => $options['email'], 'VerificationType' => $options['verificationType'], 'VerificationDocumentSid' => $options['verificationDocumentSid'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new HostedNumberOrderInstance($this->version, $payload); }
[ "public", "function", "create", "(", "$", "phoneNumber", ",", "$", "smsCapability", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'PhoneNumber'", "=>", "$", "phoneNumber", ",", "'SmsCapability'", "=>", "Serialize", "::", "booleanToString", "(", "$", "smsCapability", ")", ",", "'AccountSid'", "=>", "$", "options", "[", "'accountSid'", "]", ",", "'FriendlyName'", "=>", "$", "options", "[", "'friendlyName'", "]", ",", "'UniqueName'", "=>", "$", "options", "[", "'uniqueName'", "]", ",", "'CcEmails'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'ccEmails'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'SmsUrl'", "=>", "$", "options", "[", "'smsUrl'", "]", ",", "'SmsMethod'", "=>", "$", "options", "[", "'smsMethod'", "]", ",", "'SmsFallbackUrl'", "=>", "$", "options", "[", "'smsFallbackUrl'", "]", ",", "'SmsFallbackMethod'", "=>", "$", "options", "[", "'smsFallbackMethod'", "]", ",", "'StatusCallbackUrl'", "=>", "$", "options", "[", "'statusCallbackUrl'", "]", ",", "'StatusCallbackMethod'", "=>", "$", "options", "[", "'statusCallbackMethod'", "]", ",", "'SmsApplicationSid'", "=>", "$", "options", "[", "'smsApplicationSid'", "]", ",", "'AddressSid'", "=>", "$", "options", "[", "'addressSid'", "]", ",", "'Email'", "=>", "$", "options", "[", "'email'", "]", ",", "'VerificationType'", "=>", "$", "options", "[", "'verificationType'", "]", ",", "'VerificationDocumentSid'", "=>", "$", "options", "[", "'verificationDocumentSid'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "HostedNumberOrderInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ")", ";", "}" ]
Create a new HostedNumberOrderInstance @param string $phoneNumber An E164 formatted phone number. @param boolean $smsCapability Specify SMS capability to host. @param array|Options $options Optional Arguments @return HostedNumberOrderInstance Newly created HostedNumberOrderInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "HostedNumberOrderInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderList.php#L141-L172
twilio/twilio-php
Twilio/Rest/Wireless/V1/RatePlanInstance.php
RatePlanInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new RatePlanContext($this->version, $this->solution['sid']); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new RatePlanContext($this->version, $this->solution['sid']); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "RatePlanContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Wireless\V1\RatePlanContext Context for this RatePlanInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Wireless/V1/RatePlanInstance.php#L79-L85
twilio/twilio-php
Twilio/Rest/Preview/Wireless/Sim/UsageInstance.php
UsageInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new UsageContext($this->version, $this->solution['simSid']); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new UsageContext($this->version, $this->solution['simSid']); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "UsageContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'simSid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Preview\Wireless\Sim\UsageContext Context for this UsageInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Wireless/Sim/UsageInstance.php#L66-L72
twilio/twilio-php
Twilio/Rest/Chat/V1/Service/UserInstance.php
UserInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new UserContext( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new UserContext( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "UserContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Chat\V1\Service\UserContext Context for this UserInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V1/Service/UserInstance.php#L78-L88
twilio/twilio-php
Twilio/Rest/Authy/V1/Service/Entity/FactorContext.php
FactorContext.getChallenges
protected function getChallenges() { if (!$this->_challenges) { $this->_challenges = new ChallengeList( $this->version, $this->solution['serviceSid'], $this->solution['identity'], $this->solution['sid'] ); } return $this->_challenges; }
php
protected function getChallenges() { if (!$this->_challenges) { $this->_challenges = new ChallengeList( $this->version, $this->solution['serviceSid'], $this->solution['identity'], $this->solution['sid'] ); } return $this->_challenges; }
[ "protected", "function", "getChallenges", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_challenges", ")", "{", "$", "this", "->", "_challenges", "=", "new", "ChallengeList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'identity'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_challenges", ";", "}" ]
Access the challenges @return \Twilio\Rest\Authy\V1\Service\Entity\Factor\ChallengeList
[ "Access", "the", "challenges" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Authy/V1/Service/Entity/FactorContext.php#L113-L124
twilio/twilio-php
Twilio/Rest/Preview/Marketplace/InstalledAddOnContext.php
InstalledAddOnContext.getExtensions
protected function getExtensions() { if (!$this->_extensions) { $this->_extensions = new InstalledAddOnExtensionList($this->version, $this->solution['sid']); } return $this->_extensions; }
php
protected function getExtensions() { if (!$this->_extensions) { $this->_extensions = new InstalledAddOnExtensionList($this->version, $this->solution['sid']); } return $this->_extensions; }
[ "protected", "function", "getExtensions", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_extensions", ")", "{", "$", "this", "->", "_extensions", "=", "new", "InstalledAddOnExtensionList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_extensions", ";", "}" ]
Access the extensions @return \Twilio\Rest\Preview\Marketplace\InstalledAddOn\InstalledAddOnExtensionList
[ "Access", "the", "extensions" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Marketplace/InstalledAddOnContext.php#L103-L109
twilio/twilio-php
Twilio/Rest/Trunking/V1/TrunkInstance.php
TrunkInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new TrunkContext($this->version, $this->solution['sid']); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new TrunkContext($this->version, $this->solution['sid']); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "TrunkContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Trunking\V1\TrunkContext Context for this TrunkInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Trunking/V1/TrunkInstance.php#L82-L88
twilio/twilio-php
Twilio/Jwt/Grants/TaskRouterGrant.php
TaskRouterGrant.getPayload
public function getPayload() { $payload = array(); if ($this->workspaceSid) { $payload['workspace_sid'] = $this->workspaceSid; } if ($this->workerSid) { $payload['worker_sid'] = $this->workerSid; } if ($this->role) { $payload['role'] = $this->role; } return $payload; }
php
public function getPayload() { $payload = array(); if ($this->workspaceSid) { $payload['workspace_sid'] = $this->workspaceSid; } if ($this->workerSid) { $payload['worker_sid'] = $this->workerSid; } if ($this->role) { $payload['role'] = $this->role; } return $payload; }
[ "public", "function", "getPayload", "(", ")", "{", "$", "payload", "=", "array", "(", ")", ";", "if", "(", "$", "this", "->", "workspaceSid", ")", "{", "$", "payload", "[", "'workspace_sid'", "]", "=", "$", "this", "->", "workspaceSid", ";", "}", "if", "(", "$", "this", "->", "workerSid", ")", "{", "$", "payload", "[", "'worker_sid'", "]", "=", "$", "this", "->", "workerSid", ";", "}", "if", "(", "$", "this", "->", "role", ")", "{", "$", "payload", "[", "'role'", "]", "=", "$", "this", "->", "role", ";", "}", "return", "$", "payload", ";", "}" ]
Returns the grant data @return array data of the grant
[ "Returns", "the", "grant", "data" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Jwt/Grants/TaskRouterGrant.php#L94-L108
twilio/twilio-php
Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextList.php
ExecutionStepContextList.getContext
public function getContext() { return new ExecutionStepContextContext( $this->version, $this->solution['flowSid'], $this->solution['executionSid'], $this->solution['stepSid'] ); }
php
public function getContext() { return new ExecutionStepContextContext( $this->version, $this->solution['flowSid'], $this->solution['executionSid'], $this->solution['stepSid'] ); }
[ "public", "function", "getContext", "(", ")", "{", "return", "new", "ExecutionStepContextContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'flowSid'", "]", ",", "$", "this", "->", "solution", "[", "'executionSid'", "]", ",", "$", "this", "->", "solution", "[", "'stepSid'", "]", ")", ";", "}" ]
Constructs a ExecutionStepContextContext @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionStep\ExecutionStepContextContext
[ "Constructs", "a", "ExecutionStepContextContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextList.php#L41-L48
twilio/twilio-php
Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsInstance.php
AssistantFallbackActionsInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new AssistantFallbackActionsContext( $this->version, $this->solution['assistantSid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new AssistantFallbackActionsContext( $this->version, $this->solution['assistantSid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "AssistantFallbackActionsContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'assistantSid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Preview\Understand\Assistant\AssistantFallbackActionsContext Context for this AssistantFallbackActionsInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsInstance.php#L56-L65
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnInstance.php
AssignedAddOnInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new AssignedAddOnContext( $this->version, $this->solution['accountSid'], $this->solution['resourceSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new AssignedAddOnContext( $this->version, $this->solution['accountSid'], $this->solution['resourceSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "AssignedAddOnContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'resourceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumber\AssignedAddOnContext Context for this AssignedAddOnInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnInstance.php#L79-L90
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsInstance.php
TaskQueueRealTimeStatisticsInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new TaskQueueRealTimeStatisticsContext( $this->version, $this->solution['workspaceSid'], $this->solution['taskQueueSid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new TaskQueueRealTimeStatisticsContext( $this->version, $this->solution['workspaceSid'], $this->solution['taskQueueSid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "TaskQueueRealTimeStatisticsContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "this", "->", "solution", "[", "'taskQueueSid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueRealTimeStatisticsContext Context for this TaskQueueRealTimeStatisticsInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsInstance.php#L71-L81
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Conference/ParticipantList.php
ParticipantList.create
public function create($from, $to, $options = array()) { $options = new Values($options); $data = Values::of(array( 'From' => $from, 'To' => $to, 'StatusCallback' => $options['statusCallback'], 'StatusCallbackMethod' => $options['statusCallbackMethod'], 'StatusCallbackEvent' => Serialize::map($options['statusCallbackEvent'], function($e) { return $e; }), 'Timeout' => $options['timeout'], 'Record' => Serialize::booleanToString($options['record']), 'Muted' => Serialize::booleanToString($options['muted']), 'Beep' => $options['beep'], 'StartConferenceOnEnter' => Serialize::booleanToString($options['startConferenceOnEnter']), 'EndConferenceOnExit' => Serialize::booleanToString($options['endConferenceOnExit']), 'WaitUrl' => $options['waitUrl'], 'WaitMethod' => $options['waitMethod'], 'EarlyMedia' => Serialize::booleanToString($options['earlyMedia']), 'MaxParticipants' => $options['maxParticipants'], 'ConferenceRecord' => $options['conferenceRecord'], 'ConferenceTrim' => $options['conferenceTrim'], 'ConferenceStatusCallback' => $options['conferenceStatusCallback'], 'ConferenceStatusCallbackMethod' => $options['conferenceStatusCallbackMethod'], 'ConferenceStatusCallbackEvent' => Serialize::map($options['conferenceStatusCallbackEvent'], function($e) { return $e; }), 'RecordingChannels' => $options['recordingChannels'], 'RecordingStatusCallback' => $options['recordingStatusCallback'], 'RecordingStatusCallbackMethod' => $options['recordingStatusCallbackMethod'], 'SipAuthUsername' => $options['sipAuthUsername'], 'SipAuthPassword' => $options['sipAuthPassword'], 'Region' => $options['region'], 'ConferenceRecordingStatusCallback' => $options['conferenceRecordingStatusCallback'], 'ConferenceRecordingStatusCallbackMethod' => $options['conferenceRecordingStatusCallbackMethod'], 'RecordingStatusCallbackEvent' => Serialize::map($options['recordingStatusCallbackEvent'], function($e) { return $e; }), 'ConferenceRecordingStatusCallbackEvent' => Serialize::map($options['conferenceRecordingStatusCallbackEvent'], function($e) { return $e; }), 'Coaching' => Serialize::booleanToString($options['coaching']), 'CallSidToCoach' => $options['callSidToCoach'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new ParticipantInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['conferenceSid'] ); }
php
public function create($from, $to, $options = array()) { $options = new Values($options); $data = Values::of(array( 'From' => $from, 'To' => $to, 'StatusCallback' => $options['statusCallback'], 'StatusCallbackMethod' => $options['statusCallbackMethod'], 'StatusCallbackEvent' => Serialize::map($options['statusCallbackEvent'], function($e) { return $e; }), 'Timeout' => $options['timeout'], 'Record' => Serialize::booleanToString($options['record']), 'Muted' => Serialize::booleanToString($options['muted']), 'Beep' => $options['beep'], 'StartConferenceOnEnter' => Serialize::booleanToString($options['startConferenceOnEnter']), 'EndConferenceOnExit' => Serialize::booleanToString($options['endConferenceOnExit']), 'WaitUrl' => $options['waitUrl'], 'WaitMethod' => $options['waitMethod'], 'EarlyMedia' => Serialize::booleanToString($options['earlyMedia']), 'MaxParticipants' => $options['maxParticipants'], 'ConferenceRecord' => $options['conferenceRecord'], 'ConferenceTrim' => $options['conferenceTrim'], 'ConferenceStatusCallback' => $options['conferenceStatusCallback'], 'ConferenceStatusCallbackMethod' => $options['conferenceStatusCallbackMethod'], 'ConferenceStatusCallbackEvent' => Serialize::map($options['conferenceStatusCallbackEvent'], function($e) { return $e; }), 'RecordingChannels' => $options['recordingChannels'], 'RecordingStatusCallback' => $options['recordingStatusCallback'], 'RecordingStatusCallbackMethod' => $options['recordingStatusCallbackMethod'], 'SipAuthUsername' => $options['sipAuthUsername'], 'SipAuthPassword' => $options['sipAuthPassword'], 'Region' => $options['region'], 'ConferenceRecordingStatusCallback' => $options['conferenceRecordingStatusCallback'], 'ConferenceRecordingStatusCallbackMethod' => $options['conferenceRecordingStatusCallbackMethod'], 'RecordingStatusCallbackEvent' => Serialize::map($options['recordingStatusCallbackEvent'], function($e) { return $e; }), 'ConferenceRecordingStatusCallbackEvent' => Serialize::map($options['conferenceRecordingStatusCallbackEvent'], function($e) { return $e; }), 'Coaching' => Serialize::booleanToString($options['coaching']), 'CallSidToCoach' => $options['callSidToCoach'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new ParticipantInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['conferenceSid'] ); }
[ "public", "function", "create", "(", "$", "from", ",", "$", "to", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'From'", "=>", "$", "from", ",", "'To'", "=>", "$", "to", ",", "'StatusCallback'", "=>", "$", "options", "[", "'statusCallback'", "]", ",", "'StatusCallbackMethod'", "=>", "$", "options", "[", "'statusCallbackMethod'", "]", ",", "'StatusCallbackEvent'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'statusCallbackEvent'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'Timeout'", "=>", "$", "options", "[", "'timeout'", "]", ",", "'Record'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'record'", "]", ")", ",", "'Muted'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'muted'", "]", ")", ",", "'Beep'", "=>", "$", "options", "[", "'beep'", "]", ",", "'StartConferenceOnEnter'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'startConferenceOnEnter'", "]", ")", ",", "'EndConferenceOnExit'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'endConferenceOnExit'", "]", ")", ",", "'WaitUrl'", "=>", "$", "options", "[", "'waitUrl'", "]", ",", "'WaitMethod'", "=>", "$", "options", "[", "'waitMethod'", "]", ",", "'EarlyMedia'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'earlyMedia'", "]", ")", ",", "'MaxParticipants'", "=>", "$", "options", "[", "'maxParticipants'", "]", ",", "'ConferenceRecord'", "=>", "$", "options", "[", "'conferenceRecord'", "]", ",", "'ConferenceTrim'", "=>", "$", "options", "[", "'conferenceTrim'", "]", ",", "'ConferenceStatusCallback'", "=>", "$", "options", "[", "'conferenceStatusCallback'", "]", ",", "'ConferenceStatusCallbackMethod'", "=>", "$", "options", "[", "'conferenceStatusCallbackMethod'", "]", ",", "'ConferenceStatusCallbackEvent'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'conferenceStatusCallbackEvent'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'RecordingChannels'", "=>", "$", "options", "[", "'recordingChannels'", "]", ",", "'RecordingStatusCallback'", "=>", "$", "options", "[", "'recordingStatusCallback'", "]", ",", "'RecordingStatusCallbackMethod'", "=>", "$", "options", "[", "'recordingStatusCallbackMethod'", "]", ",", "'SipAuthUsername'", "=>", "$", "options", "[", "'sipAuthUsername'", "]", ",", "'SipAuthPassword'", "=>", "$", "options", "[", "'sipAuthPassword'", "]", ",", "'Region'", "=>", "$", "options", "[", "'region'", "]", ",", "'ConferenceRecordingStatusCallback'", "=>", "$", "options", "[", "'conferenceRecordingStatusCallback'", "]", ",", "'ConferenceRecordingStatusCallbackMethod'", "=>", "$", "options", "[", "'conferenceRecordingStatusCallbackMethod'", "]", ",", "'RecordingStatusCallbackEvent'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'recordingStatusCallbackEvent'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'ConferenceRecordingStatusCallbackEvent'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'conferenceRecordingStatusCallbackEvent'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'Coaching'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'coaching'", "]", ")", ",", "'CallSidToCoach'", "=>", "$", "options", "[", "'callSidToCoach'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "ParticipantInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'conferenceSid'", "]", ")", ";", "}" ]
Create a new ParticipantInstance @param string $from The `from` phone number used to invite a participant @param string $to The number, client id, or sip address of the new participant @param array|Options $options Optional Arguments @return ParticipantInstance Newly created ParticipantInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "ParticipantInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Conference/ParticipantList.php#L46-L97
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Conference/ParticipantList.php
ParticipantList.getContext
public function getContext($callSid) { return new ParticipantContext( $this->version, $this->solution['accountSid'], $this->solution['conferenceSid'], $callSid ); }
php
public function getContext($callSid) { return new ParticipantContext( $this->version, $this->solution['accountSid'], $this->solution['conferenceSid'], $callSid ); }
[ "public", "function", "getContext", "(", "$", "callSid", ")", "{", "return", "new", "ParticipantContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'conferenceSid'", "]", ",", "$", "callSid", ")", ";", "}" ]
Constructs a ParticipantContext @param string $callSid The Call SID of the resource to fetch @return \Twilio\Rest\Api\V2010\Account\Conference\ParticipantContext
[ "Constructs", "a", "ParticipantContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Conference/ParticipantList.php#L198-L205
twilio/twilio-php
Twilio/Stream.php
Stream.next
public function next() { $this->page->next(); $this->currentRecord++; if ($this->overLimit()) { return; } if (!$this->page->valid()) { if ($this->overPageLimit()) { return; } $this->page = $this->page->nextPage(); $this->currentPage++; } }
php
public function next() { $this->page->next(); $this->currentRecord++; if ($this->overLimit()) { return; } if (!$this->page->valid()) { if ($this->overPageLimit()) { return; } $this->page = $this->page->nextPage(); $this->currentPage++; } }
[ "public", "function", "next", "(", ")", "{", "$", "this", "->", "page", "->", "next", "(", ")", ";", "$", "this", "->", "currentRecord", "++", ";", "if", "(", "$", "this", "->", "overLimit", "(", ")", ")", "{", "return", ";", "}", "if", "(", "!", "$", "this", "->", "page", "->", "valid", "(", ")", ")", "{", "if", "(", "$", "this", "->", "overPageLimit", "(", ")", ")", "{", "return", ";", "}", "$", "this", "->", "page", "=", "$", "this", "->", "page", "->", "nextPage", "(", ")", ";", "$", "this", "->", "currentPage", "++", ";", "}", "}" ]
(PHP 5 &gt;= 5.0.0)<br/> Move forward to next element @link http://php.net/manual/en/iterator.next.php @return void Any returned value is ignored.
[ "(", "PHP", "5", "&gt", ";", "=", "5", ".", "0", ".", "0", ")", "<br", "/", ">", "Move", "forward", "to", "next", "element" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Stream.php#L40-L55
twilio/twilio-php
Twilio/Stream.php
Stream.valid
public function valid() { return $this->page && $this->page->valid() && !$this->overLimit() && !$this->overPageLimit(); }
php
public function valid() { return $this->page && $this->page->valid() && !$this->overLimit() && !$this->overPageLimit(); }
[ "public", "function", "valid", "(", ")", "{", "return", "$", "this", "->", "page", "&&", "$", "this", "->", "page", "->", "valid", "(", ")", "&&", "!", "$", "this", "->", "overLimit", "(", ")", "&&", "!", "$", "this", "->", "overPageLimit", "(", ")", ";", "}" ]
(PHP 5 &gt;= 5.0.0)<br/> Checks if current position is valid @link http://php.net/manual/en/iterator.valid.php @return boolean The return value will be casted to boolean and then evaluated. Returns true on success or false on failure.
[ "(", "PHP", "5", "&gt", ";", "=", "5", ".", "0", ".", "0", ")", "<br", "/", ">", "Checks", "if", "current", "position", "is", "valid" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Stream.php#L74-L76
twilio/twilio-php
Twilio/Stream.php
Stream.rewind
public function rewind() { $this->page = $this->firstPage; $this->page->rewind(); $this->currentPage = 1; $this->currentRecord = 1; }
php
public function rewind() { $this->page = $this->firstPage; $this->page->rewind(); $this->currentPage = 1; $this->currentRecord = 1; }
[ "public", "function", "rewind", "(", ")", "{", "$", "this", "->", "page", "=", "$", "this", "->", "firstPage", ";", "$", "this", "->", "page", "->", "rewind", "(", ")", ";", "$", "this", "->", "currentPage", "=", "1", ";", "$", "this", "->", "currentRecord", "=", "1", ";", "}" ]
(PHP 5 &gt;= 5.0.0)<br/> Rewind the Iterator to the first element @link http://php.net/manual/en/iterator.rewind.php @return void Any returned value is ignored.
[ "(", "PHP", "5", "&gt", ";", "=", "5", ".", "0", ".", "0", ")", "<br", "/", ">", "Rewind", "the", "Iterator", "to", "the", "first", "element" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Stream.php#L84-L89
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/QueueInstance.php
QueueInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new QueueContext( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new QueueContext( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "QueueContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Api\V2010\Account\QueueContext Context for this QueueInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/QueueInstance.php#L70-L80
twilio/twilio-php
Twilio/Rest/FlexApi/V1/ConfigurationInstance.php
ConfigurationInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new ConfigurationContext($this->version); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new ConfigurationContext($this->version); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "ConfigurationContext", "(", "$", "this", "->", "version", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\FlexApi\V1\ConfigurationContext Context for this ConfigurationInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/FlexApi/V1/ConfigurationInstance.php#L108-L114
twilio/twilio-php
Twilio/Rest/Autopilot/V1/Assistant/TaskContext.php
TaskContext.getFields
protected function getFields() { if (!$this->_fields) { $this->_fields = new FieldList( $this->version, $this->solution['assistantSid'], $this->solution['sid'] ); } return $this->_fields; }
php
protected function getFields() { if (!$this->_fields) { $this->_fields = new FieldList( $this->version, $this->solution['assistantSid'], $this->solution['sid'] ); } return $this->_fields; }
[ "protected", "function", "getFields", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_fields", ")", "{", "$", "this", "->", "_fields", "=", "new", "FieldList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'assistantSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_fields", ";", "}" ]
Access the fields @return \Twilio\Rest\Autopilot\V1\Assistant\Task\FieldList
[ "Access", "the", "fields" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/Assistant/TaskContext.php#L129-L139
twilio/twilio-php
Twilio/Rest/Autopilot/V1/Assistant/TaskContext.php
TaskContext.getSamples
protected function getSamples() { if (!$this->_samples) { $this->_samples = new SampleList( $this->version, $this->solution['assistantSid'], $this->solution['sid'] ); } return $this->_samples; }
php
protected function getSamples() { if (!$this->_samples) { $this->_samples = new SampleList( $this->version, $this->solution['assistantSid'], $this->solution['sid'] ); } return $this->_samples; }
[ "protected", "function", "getSamples", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_samples", ")", "{", "$", "this", "->", "_samples", "=", "new", "SampleList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'assistantSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_samples", ";", "}" ]
Access the samples @return \Twilio\Rest\Autopilot\V1\Assistant\Task\SampleList
[ "Access", "the", "samples" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/Assistant/TaskContext.php#L146-L156
twilio/twilio-php
Twilio/Rest/Autopilot/V1/Assistant/TaskContext.php
TaskContext.getTaskActions
protected function getTaskActions() { if (!$this->_taskActions) { $this->_taskActions = new TaskActionsList( $this->version, $this->solution['assistantSid'], $this->solution['sid'] ); } return $this->_taskActions; }
php
protected function getTaskActions() { if (!$this->_taskActions) { $this->_taskActions = new TaskActionsList( $this->version, $this->solution['assistantSid'], $this->solution['sid'] ); } return $this->_taskActions; }
[ "protected", "function", "getTaskActions", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_taskActions", ")", "{", "$", "this", "->", "_taskActions", "=", "new", "TaskActionsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'assistantSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_taskActions", ";", "}" ]
Access the taskActions @return \Twilio\Rest\Autopilot\V1\Assistant\Task\TaskActionsList
[ "Access", "the", "taskActions" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/Assistant/TaskContext.php#L163-L173
twilio/twilio-php
Twilio/Rest/Autopilot/V1/Assistant/TaskContext.php
TaskContext.getStatistics
protected function getStatistics() { if (!$this->_statistics) { $this->_statistics = new TaskStatisticsList( $this->version, $this->solution['assistantSid'], $this->solution['sid'] ); } return $this->_statistics; }
php
protected function getStatistics() { if (!$this->_statistics) { $this->_statistics = new TaskStatisticsList( $this->version, $this->solution['assistantSid'], $this->solution['sid'] ); } return $this->_statistics; }
[ "protected", "function", "getStatistics", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_statistics", ")", "{", "$", "this", "->", "_statistics", "=", "new", "TaskStatisticsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'assistantSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_statistics", ";", "}" ]
Access the statistics @return \Twilio\Rest\Autopilot\V1\Assistant\Task\TaskStatisticsList
[ "Access", "the", "statistics" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/Assistant/TaskContext.php#L180-L190
twilio/twilio-php
Twilio/Domain.php
Domain.request
public function request($method, $uri, $params = array(), $data = array(), $headers = array(), $user = null, $password=null, $timeout=null) { $url = $this->absoluteUrl($uri); return $this->client->request( $method, $url, $params, $data, $headers, $user, $password, $timeout ); }
php
public function request($method, $uri, $params = array(), $data = array(), $headers = array(), $user = null, $password=null, $timeout=null) { $url = $this->absoluteUrl($uri); return $this->client->request( $method, $url, $params, $data, $headers, $user, $password, $timeout ); }
[ "public", "function", "request", "(", "$", "method", ",", "$", "uri", ",", "$", "params", "=", "array", "(", ")", ",", "$", "data", "=", "array", "(", ")", ",", "$", "headers", "=", "array", "(", ")", ",", "$", "user", "=", "null", ",", "$", "password", "=", "null", ",", "$", "timeout", "=", "null", ")", "{", "$", "url", "=", "$", "this", "->", "absoluteUrl", "(", "$", "uri", ")", ";", "return", "$", "this", "->", "client", "->", "request", "(", "$", "method", ",", "$", "url", ",", "$", "params", ",", "$", "data", ",", "$", "headers", ",", "$", "user", ",", "$", "password", ",", "$", "timeout", ")", ";", "}" ]
Make an HTTP request to the domain @param string $method HTTP Method to make the request with @param string $uri Relative uri to make a request to @param array $params Query string arguments @param array $data Post form data @param array $headers HTTP headers to send with the request @param string $user User to authenticate as @param string $password Password @param null $timeout Request timeout @return \Twilio\Http\Response the response for the request
[ "Make", "an", "HTTP", "request", "to", "the", "domain" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Domain.php#L57-L71
twilio/twilio-php
Twilio/TwiML/TwiML.php
TwiML.buildElement
private function buildElement($twiml, $document) { $element = $document->createElement($twiml->name); foreach ($twiml->attributes as $name => $value) { if (is_bool($value)) { $value = ($value === true) ? 'true' : 'false'; } $element->setAttribute($name, $value); } foreach ($twiml->children as $child) { if (is_string($child)) { $element->appendChild($document->createTextNode($child)); } else { $element->appendChild($this->buildElement($child, $document)); } } return $element; }
php
private function buildElement($twiml, $document) { $element = $document->createElement($twiml->name); foreach ($twiml->attributes as $name => $value) { if (is_bool($value)) { $value = ($value === true) ? 'true' : 'false'; } $element->setAttribute($name, $value); } foreach ($twiml->children as $child) { if (is_string($child)) { $element->appendChild($document->createTextNode($child)); } else { $element->appendChild($this->buildElement($child, $document)); } } return $element; }
[ "private", "function", "buildElement", "(", "$", "twiml", ",", "$", "document", ")", "{", "$", "element", "=", "$", "document", "->", "createElement", "(", "$", "twiml", "->", "name", ")", ";", "foreach", "(", "$", "twiml", "->", "attributes", "as", "$", "name", "=>", "$", "value", ")", "{", "if", "(", "is_bool", "(", "$", "value", ")", ")", "{", "$", "value", "=", "(", "$", "value", "===", "true", ")", "?", "'true'", ":", "'false'", ";", "}", "$", "element", "->", "setAttribute", "(", "$", "name", ",", "$", "value", ")", ";", "}", "foreach", "(", "$", "twiml", "->", "children", "as", "$", "child", ")", "{", "if", "(", "is_string", "(", "$", "child", ")", ")", "{", "$", "element", "->", "appendChild", "(", "$", "document", "->", "createTextNode", "(", "$", "child", ")", ")", ";", "}", "else", "{", "$", "element", "->", "appendChild", "(", "$", "this", "->", "buildElement", "(", "$", "child", ",", "$", "document", ")", ")", ";", "}", "}", "return", "$", "element", ";", "}" ]
Build TwiML element. @param TwiML $twiml TwiML element to convert to XML @param DOMDocument $document XML document for the element @return DOMElement $element
[ "Build", "TwiML", "element", "." ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/TwiML/TwiML.php#L104-L123
twilio/twilio-php
Twilio/TwiML/TwiML.php
TwiML.xml
private function xml() { $document = new DOMDocument('1.0', 'UTF-8'); $document->appendChild($this->buildElement($this, $document)); return $document; }
php
private function xml() { $document = new DOMDocument('1.0', 'UTF-8'); $document->appendChild($this->buildElement($this, $document)); return $document; }
[ "private", "function", "xml", "(", ")", "{", "$", "document", "=", "new", "DOMDocument", "(", "'1.0'", ",", "'UTF-8'", ")", ";", "$", "document", "->", "appendChild", "(", "$", "this", "->", "buildElement", "(", "$", "this", ",", "$", "document", ")", ")", ";", "return", "$", "document", ";", "}" ]
Build XML element. @return DOMDocument Build TwiML element
[ "Build", "XML", "element", "." ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/TwiML/TwiML.php#L130-L134
twilio/twilio-php
Twilio/Rest/Authy/V1/Service/Entity/FactorInstance.php
FactorInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new FactorContext( $this->version, $this->solution['serviceSid'], $this->solution['identity'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new FactorContext( $this->version, $this->solution['serviceSid'], $this->solution['identity'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "FactorContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'identity'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Authy\V1\Service\Entity\FactorContext Context for this FactorInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Authy/V1/Service/Entity/FactorInstance.php#L83-L94
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/AddressList.php
AddressList.create
public function create($customerName, $street, $city, $region, $postalCode, $isoCountry, $options = array()) { $options = new Values($options); $data = Values::of(array( 'CustomerName' => $customerName, 'Street' => $street, 'City' => $city, 'Region' => $region, 'PostalCode' => $postalCode, 'IsoCountry' => $isoCountry, 'FriendlyName' => $options['friendlyName'], 'EmergencyEnabled' => Serialize::booleanToString($options['emergencyEnabled']), 'AutoCorrectAddress' => Serialize::booleanToString($options['autoCorrectAddress']), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AddressInstance($this->version, $payload, $this->solution['accountSid']); }
php
public function create($customerName, $street, $city, $region, $postalCode, $isoCountry, $options = array()) { $options = new Values($options); $data = Values::of(array( 'CustomerName' => $customerName, 'Street' => $street, 'City' => $city, 'Region' => $region, 'PostalCode' => $postalCode, 'IsoCountry' => $isoCountry, 'FriendlyName' => $options['friendlyName'], 'EmergencyEnabled' => Serialize::booleanToString($options['emergencyEnabled']), 'AutoCorrectAddress' => Serialize::booleanToString($options['autoCorrectAddress']), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AddressInstance($this->version, $payload, $this->solution['accountSid']); }
[ "public", "function", "create", "(", "$", "customerName", ",", "$", "street", ",", "$", "city", ",", "$", "region", ",", "$", "postalCode", ",", "$", "isoCountry", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'CustomerName'", "=>", "$", "customerName", ",", "'Street'", "=>", "$", "street", ",", "'City'", "=>", "$", "city", ",", "'Region'", "=>", "$", "region", ",", "'PostalCode'", "=>", "$", "postalCode", ",", "'IsoCountry'", "=>", "$", "isoCountry", ",", "'FriendlyName'", "=>", "$", "options", "[", "'friendlyName'", "]", ",", "'EmergencyEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'emergencyEnabled'", "]", ")", ",", "'AutoCorrectAddress'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'autoCorrectAddress'", "]", ")", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "AddressInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}" ]
Create a new AddressInstance @param string $customerName The name to associate with the new address @param string $street The number and street address of the new address @param string $city The city of the new address @param string $region The state or region of the new address @param string $postalCode The postal code of the new address @param string $isoCountry The ISO country code of the new address @param array|Options $options Optional Arguments @return AddressInstance Newly created AddressInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "AddressInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/AddressList.php#L49-L72
twilio/twilio-php
Twilio/Rest/Chat/V1/Service/RoleInstance.php
RoleInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new RoleContext( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new RoleContext( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "RoleContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Chat\V1\Service\RoleContext Context for this RoleInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V1/Service/RoleInstance.php#L65-L75
twilio/twilio-php
Twilio/Rest/Proxy/V1/Service/SessionContext.php
SessionContext.getInteractions
protected function getInteractions() { if (!$this->_interactions) { $this->_interactions = new InteractionList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_interactions; }
php
protected function getInteractions() { if (!$this->_interactions) { $this->_interactions = new InteractionList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_interactions; }
[ "protected", "function", "getInteractions", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_interactions", ")", "{", "$", "this", "->", "_interactions", "=", "new", "InteractionList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_interactions", ";", "}" ]
Access the interactions @return \Twilio\Rest\Proxy\V1\Service\Session\InteractionList
[ "Access", "the", "interactions" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Proxy/V1/Service/SessionContext.php#L121-L131
twilio/twilio-php
Twilio/Rest/Proxy/V1/Service/SessionContext.php
SessionContext.getParticipants
protected function getParticipants() { if (!$this->_participants) { $this->_participants = new ParticipantList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_participants; }
php
protected function getParticipants() { if (!$this->_participants) { $this->_participants = new ParticipantList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_participants; }
[ "protected", "function", "getParticipants", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_participants", ")", "{", "$", "this", "->", "_participants", "=", "new", "ParticipantList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_participants", ";", "}" ]
Access the participants @return \Twilio\Rest\Proxy\V1\Service\Session\ParticipantList
[ "Access", "the", "participants" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Proxy/V1/Service/SessionContext.php#L138-L148
twilio/twilio-php
Twilio/Rest/Studio/V1/Flow/EngagementContext.php
EngagementContext.getSteps
protected function getSteps() { if (!$this->_steps) { $this->_steps = new StepList($this->version, $this->solution['flowSid'], $this->solution['sid']); } return $this->_steps; }
php
protected function getSteps() { if (!$this->_steps) { $this->_steps = new StepList($this->version, $this->solution['flowSid'], $this->solution['sid']); } return $this->_steps; }
[ "protected", "function", "getSteps", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_steps", ")", "{", "$", "this", "->", "_steps", "=", "new", "StepList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'flowSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_steps", ";", "}" ]
Access the steps @return \Twilio\Rest\Studio\V1\Flow\Engagement\StepList
[ "Access", "the", "steps" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/Flow/EngagementContext.php#L84-L90
twilio/twilio-php
Twilio/Rest/Studio/V1/Flow/EngagementContext.php
EngagementContext.getEngagementContext
protected function getEngagementContext() { if (!$this->_engagementContext) { $this->_engagementContext = new EngagementContextList( $this->version, $this->solution['flowSid'], $this->solution['sid'] ); } return $this->_engagementContext; }
php
protected function getEngagementContext() { if (!$this->_engagementContext) { $this->_engagementContext = new EngagementContextList( $this->version, $this->solution['flowSid'], $this->solution['sid'] ); } return $this->_engagementContext; }
[ "protected", "function", "getEngagementContext", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_engagementContext", ")", "{", "$", "this", "->", "_engagementContext", "=", "new", "EngagementContextList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'flowSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_engagementContext", ";", "}" ]
Access the engagementContext @return \Twilio\Rest\Studio\V1\Flow\Engagement\EngagementContextList
[ "Access", "the", "engagementContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/Flow/EngagementContext.php#L97-L107
twilio/twilio-php
Twilio/Rest/Video/V1/RoomInstance.php
RoomInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new RoomContext($this->version, $this->solution['sid']); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new RoomContext($this->version, $this->solution['sid']); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "RoomContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Video\V1\RoomContext Context for this RoomInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Video/V1/RoomInstance.php#L85-L91
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesList.php
AuthTypesList.getCalls
protected function getCalls() { if (!$this->_calls) { $this->_calls = new AuthTypeCallsList( $this->version, $this->solution['accountSid'], $this->solution['domainSid'] ); } return $this->_calls; }
php
protected function getCalls() { if (!$this->_calls) { $this->_calls = new AuthTypeCallsList( $this->version, $this->solution['accountSid'], $this->solution['domainSid'] ); } return $this->_calls; }
[ "protected", "function", "getCalls", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_calls", ")", "{", "$", "this", "->", "_calls", "=", "new", "AuthTypeCallsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'domainSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_calls", ";", "}" ]
Access the calls
[ "Access", "the", "calls" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesList.php#L44-L54
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesList.php
AuthTypesList.getRegistrations
protected function getRegistrations() { if (!$this->_registrations) { $this->_registrations = new AuthTypeRegistrationsList( $this->version, $this->solution['accountSid'], $this->solution['domainSid'] ); } return $this->_registrations; }
php
protected function getRegistrations() { if (!$this->_registrations) { $this->_registrations = new AuthTypeRegistrationsList( $this->version, $this->solution['accountSid'], $this->solution['domainSid'] ); } return $this->_registrations; }
[ "protected", "function", "getRegistrations", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_registrations", ")", "{", "$", "this", "->", "_registrations", "=", "new", "AuthTypeRegistrationsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'domainSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_registrations", ";", "}" ]
Access the registrations
[ "Access", "the", "registrations" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypesList.php#L59-L69
twilio/twilio-php
Twilio/Rest/Chat/V2/Service/User/UserChannelInstance.php
UserChannelInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new UserChannelContext( $this->version, $this->solution['serviceSid'], $this->solution['userSid'], $this->solution['channelSid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new UserChannelContext( $this->version, $this->solution['serviceSid'], $this->solution['userSid'], $this->solution['channelSid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "UserChannelContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'userSid'", "]", ",", "$", "this", "->", "solution", "[", "'channelSid'", "]", ")", ";", "}", "return", "$", "this", "->", "context", ";", "}" ]
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return \Twilio\Rest\Chat\V2\Service\User\UserChannelContext Context for this UserChannelInstance
[ "Generate", "an", "instance", "context", "for", "the", "instance", "the", "context", "is", "capable", "of", "performing", "various", "actions", ".", "All", "instance", "actions", "are", "proxied", "to", "the", "context" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V2/Service/User/UserChannelInstance.php#L76-L87
twilio/twilio-php
Twilio/Rest/Video/V1/Room/ParticipantContext.php
ParticipantContext.getPublishedTracks
protected function getPublishedTracks() { if (!$this->_publishedTracks) { $this->_publishedTracks = new PublishedTrackList( $this->version, $this->solution['roomSid'], $this->solution['sid'] ); } return $this->_publishedTracks; }
php
protected function getPublishedTracks() { if (!$this->_publishedTracks) { $this->_publishedTracks = new PublishedTrackList( $this->version, $this->solution['roomSid'], $this->solution['sid'] ); } return $this->_publishedTracks; }
[ "protected", "function", "getPublishedTracks", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_publishedTracks", ")", "{", "$", "this", "->", "_publishedTracks", "=", "new", "PublishedTrackList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'roomSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_publishedTracks", ";", "}" ]
Access the publishedTracks @return \Twilio\Rest\Video\V1\Room\Participant\PublishedTrackList
[ "Access", "the", "publishedTracks" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Video/V1/Room/ParticipantContext.php#L101-L111
twilio/twilio-php
Twilio/Rest/Video/V1/Room/ParticipantContext.php
ParticipantContext.getSubscribedTracks
protected function getSubscribedTracks() { if (!$this->_subscribedTracks) { $this->_subscribedTracks = new SubscribedTrackList( $this->version, $this->solution['roomSid'], $this->solution['sid'] ); } return $this->_subscribedTracks; }
php
protected function getSubscribedTracks() { if (!$this->_subscribedTracks) { $this->_subscribedTracks = new SubscribedTrackList( $this->version, $this->solution['roomSid'], $this->solution['sid'] ); } return $this->_subscribedTracks; }
[ "protected", "function", "getSubscribedTracks", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_subscribedTracks", ")", "{", "$", "this", "->", "_subscribedTracks", "=", "new", "SubscribedTrackList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'roomSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_subscribedTracks", ";", "}" ]
Access the subscribedTracks @return \Twilio\Rest\Video\V1\Room\Participant\SubscribedTrackList
[ "Access", "the", "subscribedTracks" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Video/V1/Room/ParticipantContext.php#L118-L128