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/TwiML/VoiceResponse.php
VoiceResponse.play
public function play($url = null, $attributes = array()) { return $this->nest(new Voice\Play($url, $attributes)); }
php
public function play($url = null, $attributes = array()) { return $this->nest(new Voice\Play($url, $attributes)); }
[ "public", "function", "play", "(", "$", "url", "=", "null", ",", "$", "attributes", "=", "array", "(", ")", ")", "{", "return", "$", "this", "->", "nest", "(", "new", "Voice", "\\", "Play", "(", "$", "url", ",", "$", "attributes", ")", ")", ";", "}" ]
Add Play child. @param url $url Media URL @param array $attributes Optional attributes @return TwiML Child element.
[ "Add", "Play", "child", "." ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/TwiML/VoiceResponse.php#L106-L108
twilio/twilio-php
Twilio/Rest/Chat/V2/Service/User/UserBindingInstance.php
UserBindingInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new UserBindingContext( $this->version, $this->solution['serviceSid'], $this->solution['userSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new UserBindingContext( $this->version, $this->solution['serviceSid'], $this->solution['userSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "UserBindingContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'userSid'", "]", ",", "$", "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\V2\Service\User\UserBindingContext Context for this UserBindingInstance
[ "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/UserBindingInstance.php#L78-L89
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueContext.php
TaskQueueContext.getStatistics
protected function getStatistics() { if (!$this->_statistics) { $this->_statistics = new TaskQueueStatisticsList( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->_statistics; }
php
protected function getStatistics() { if (!$this->_statistics) { $this->_statistics = new TaskQueueStatisticsList( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->_statistics; }
[ "protected", "function", "getStatistics", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_statistics", ")", "{", "$", "this", "->", "_statistics", "=", "new", "TaskQueueStatisticsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_statistics", ";", "}" ]
Access the statistics @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueStatisticsList
[ "Access", "the", "statistics" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueContext.php#L123-L133
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueContext.php
TaskQueueContext.getRealTimeStatistics
protected function getRealTimeStatistics() { if (!$this->_realTimeStatistics) { $this->_realTimeStatistics = new TaskQueueRealTimeStatisticsList( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->_realTimeStatistics; }
php
protected function getRealTimeStatistics() { if (!$this->_realTimeStatistics) { $this->_realTimeStatistics = new TaskQueueRealTimeStatisticsList( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->_realTimeStatistics; }
[ "protected", "function", "getRealTimeStatistics", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_realTimeStatistics", ")", "{", "$", "this", "->", "_realTimeStatistics", "=", "new", "TaskQueueRealTimeStatisticsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_realTimeStatistics", ";", "}" ]
Access the realTimeStatistics @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueRealTimeStatisticsList
[ "Access", "the", "realTimeStatistics" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueContext.php#L140-L150
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueContext.php
TaskQueueContext.getCumulativeStatistics
protected function getCumulativeStatistics() { if (!$this->_cumulativeStatistics) { $this->_cumulativeStatistics = new TaskQueueCumulativeStatisticsList( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->_cumulativeStatistics; }
php
protected function getCumulativeStatistics() { if (!$this->_cumulativeStatistics) { $this->_cumulativeStatistics = new TaskQueueCumulativeStatisticsList( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->_cumulativeStatistics; }
[ "protected", "function", "getCumulativeStatistics", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_cumulativeStatistics", ")", "{", "$", "this", "->", "_cumulativeStatistics", "=", "new", "TaskQueueCumulativeStatisticsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_cumulativeStatistics", ";", "}" ]
Access the cumulativeStatistics @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueue\TaskQueueCumulativeStatisticsList
[ "Access", "the", "cumulativeStatistics" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueContext.php#L157-L167
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingList.php
CredentialListMappingList.getContext
public function getContext($sid) { return new CredentialListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
php
public function getContext($sid) { return new CredentialListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "CredentialListMappingContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'domainSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a CredentialListMappingContext @param string $sid A string that identifies the resource to fetch @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\CredentialListMappingContext
[ "Constructs", "a", "CredentialListMappingContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingList.php#L156-L163
twilio/twilio-php
Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionList.php
SyncMapPermissionList.getContext
public function getContext($identity) { return new SyncMapPermissionContext( $this->version, $this->solution['serviceSid'], $this->solution['mapSid'], $identity ); }
php
public function getContext($identity) { return new SyncMapPermissionContext( $this->version, $this->solution['serviceSid'], $this->solution['mapSid'], $identity ); }
[ "public", "function", "getContext", "(", "$", "identity", ")", "{", "return", "new", "SyncMapPermissionContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'mapSid'", "]", ",", "$", "identity", ")", ";", "}" ]
Constructs a SyncMapPermissionContext @param string $identity Identity of the user to whom the Sync Map Permission applies. @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapPermissionContext
[ "Constructs", "a", "SyncMapPermissionContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionList.php#L130-L137
twilio/twilio-php
Twilio/Rest/Notify/V1/Service/NotificationList.php
NotificationList.create
public function create($options = array()) { $options = new Values($options); $data = Values::of(array( 'Identity' => Serialize::map($options['identity'], function($e) { return $e; }), 'Tag' => Serialize::map($options['tag'], function($e) { return $e; }), 'Body' => $options['body'], 'Priority' => $options['priority'], 'Ttl' => $options['ttl'], 'Title' => $options['title'], 'Sound' => $options['sound'], 'Action' => $options['action'], 'Data' => Serialize::jsonObject($options['data']), 'Apn' => Serialize::jsonObject($options['apn']), 'Gcm' => Serialize::jsonObject($options['gcm']), 'Sms' => Serialize::jsonObject($options['sms']), 'FacebookMessenger' => Serialize::jsonObject($options['facebookMessenger']), 'Fcm' => Serialize::jsonObject($options['fcm']), 'Segment' => Serialize::map($options['segment'], function($e) { return $e; }), 'Alexa' => Serialize::jsonObject($options['alexa']), 'ToBinding' => Serialize::map($options['toBinding'], function($e) { return $e; }), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new NotificationInstance($this->version, $payload, $this->solution['serviceSid']); }
php
public function create($options = array()) { $options = new Values($options); $data = Values::of(array( 'Identity' => Serialize::map($options['identity'], function($e) { return $e; }), 'Tag' => Serialize::map($options['tag'], function($e) { return $e; }), 'Body' => $options['body'], 'Priority' => $options['priority'], 'Ttl' => $options['ttl'], 'Title' => $options['title'], 'Sound' => $options['sound'], 'Action' => $options['action'], 'Data' => Serialize::jsonObject($options['data']), 'Apn' => Serialize::jsonObject($options['apn']), 'Gcm' => Serialize::jsonObject($options['gcm']), 'Sms' => Serialize::jsonObject($options['sms']), 'FacebookMessenger' => Serialize::jsonObject($options['facebookMessenger']), 'Fcm' => Serialize::jsonObject($options['fcm']), 'Segment' => Serialize::map($options['segment'], function($e) { return $e; }), 'Alexa' => Serialize::jsonObject($options['alexa']), 'ToBinding' => Serialize::map($options['toBinding'], function($e) { return $e; }), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new NotificationInstance($this->version, $payload, $this->solution['serviceSid']); }
[ "public", "function", "create", "(", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Identity'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'identity'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'Tag'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'tag'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'Body'", "=>", "$", "options", "[", "'body'", "]", ",", "'Priority'", "=>", "$", "options", "[", "'priority'", "]", ",", "'Ttl'", "=>", "$", "options", "[", "'ttl'", "]", ",", "'Title'", "=>", "$", "options", "[", "'title'", "]", ",", "'Sound'", "=>", "$", "options", "[", "'sound'", "]", ",", "'Action'", "=>", "$", "options", "[", "'action'", "]", ",", "'Data'", "=>", "Serialize", "::", "jsonObject", "(", "$", "options", "[", "'data'", "]", ")", ",", "'Apn'", "=>", "Serialize", "::", "jsonObject", "(", "$", "options", "[", "'apn'", "]", ")", ",", "'Gcm'", "=>", "Serialize", "::", "jsonObject", "(", "$", "options", "[", "'gcm'", "]", ")", ",", "'Sms'", "=>", "Serialize", "::", "jsonObject", "(", "$", "options", "[", "'sms'", "]", ")", ",", "'FacebookMessenger'", "=>", "Serialize", "::", "jsonObject", "(", "$", "options", "[", "'facebookMessenger'", "]", ")", ",", "'Fcm'", "=>", "Serialize", "::", "jsonObject", "(", "$", "options", "[", "'fcm'", "]", ")", ",", "'Segment'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'segment'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'Alexa'", "=>", "Serialize", "::", "jsonObject", "(", "$", "options", "[", "'alexa'", "]", ")", ",", "'ToBinding'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'toBinding'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "NotificationInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ")", ";", "}" ]
Create a new NotificationInstance @param array|Options $options Optional Arguments @return NotificationInstance Newly created NotificationInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "NotificationInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Notify/V1/Service/NotificationList.php#L46-L77
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsInstance.php
WorkspaceRealTimeStatisticsInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new WorkspaceRealTimeStatisticsContext( $this->version, $this->solution['workspaceSid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new WorkspaceRealTimeStatisticsContext( $this->version, $this->solution['workspaceSid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "WorkspaceRealTimeStatisticsContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ")", ";", "}", "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\WorkspaceRealTimeStatisticsContext Context for this WorkspaceRealTimeStatisticsInstance
[ "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/WorkspaceRealTimeStatisticsInstance.php#L66-L75
twilio/twilio-php
Twilio/Rest/Accounts/V1/Credential/PublicKeyList.php
PublicKeyList.create
public function create($publicKey, $options = array()) { $options = new Values($options); $data = Values::of(array( 'PublicKey' => $publicKey, 'FriendlyName' => $options['friendlyName'], 'AccountSid' => $options['accountSid'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new PublicKeyInstance($this->version, $payload); }
php
public function create($publicKey, $options = array()) { $options = new Values($options); $data = Values::of(array( 'PublicKey' => $publicKey, 'FriendlyName' => $options['friendlyName'], 'AccountSid' => $options['accountSid'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new PublicKeyInstance($this->version, $payload); }
[ "public", "function", "create", "(", "$", "publicKey", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'PublicKey'", "=>", "$", "publicKey", ",", "'FriendlyName'", "=>", "$", "options", "[", "'friendlyName'", "]", ",", "'AccountSid'", "=>", "$", "options", "[", "'accountSid'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "PublicKeyInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ")", ";", "}" ]
Create a new PublicKeyInstance @param string $publicKey A URL encoded representation of the public key @param array|Options $options Optional Arguments @return PublicKeyInstance Newly created PublicKeyInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "PublicKeyInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Accounts/V1/Credential/PublicKeyList.php#L127-L144
twilio/twilio-php
Twilio/Rest/Chat/V1/ServiceContext.php
ServiceContext.update
public function update($options = array()) { $options = new Values($options); $data = Values::of(array( 'FriendlyName' => $options['friendlyName'], 'DefaultServiceRoleSid' => $options['defaultServiceRoleSid'], 'DefaultChannelRoleSid' => $options['defaultChannelRoleSid'], 'DefaultChannelCreatorRoleSid' => $options['defaultChannelCreatorRoleSid'], 'ReadStatusEnabled' => Serialize::booleanToString($options['readStatusEnabled']), 'ReachabilityEnabled' => Serialize::booleanToString($options['reachabilityEnabled']), 'TypingIndicatorTimeout' => $options['typingIndicatorTimeout'], 'ConsumptionReportInterval' => $options['consumptionReportInterval'], 'Notifications.NewMessage.Enabled' => Serialize::booleanToString($options['notificationsNewMessageEnabled']), 'Notifications.NewMessage.Template' => $options['notificationsNewMessageTemplate'], 'Notifications.AddedToChannel.Enabled' => Serialize::booleanToString($options['notificationsAddedToChannelEnabled']), 'Notifications.AddedToChannel.Template' => $options['notificationsAddedToChannelTemplate'], 'Notifications.RemovedFromChannel.Enabled' => Serialize::booleanToString($options['notificationsRemovedFromChannelEnabled']), 'Notifications.RemovedFromChannel.Template' => $options['notificationsRemovedFromChannelTemplate'], 'Notifications.InvitedToChannel.Enabled' => Serialize::booleanToString($options['notificationsInvitedToChannelEnabled']), 'Notifications.InvitedToChannel.Template' => $options['notificationsInvitedToChannelTemplate'], 'PreWebhookUrl' => $options['preWebhookUrl'], 'PostWebhookUrl' => $options['postWebhookUrl'], 'WebhookMethod' => $options['webhookMethod'], 'WebhookFilters' => Serialize::map($options['webhookFilters'], function($e) { return $e; }), 'Webhooks.OnMessageSend.Url' => $options['webhooksOnMessageSendUrl'], 'Webhooks.OnMessageSend.Method' => $options['webhooksOnMessageSendMethod'], 'Webhooks.OnMessageSend.Format' => $options['webhooksOnMessageSendFormat'], 'Webhooks.OnMessageUpdate.Url' => $options['webhooksOnMessageUpdateUrl'], 'Webhooks.OnMessageUpdate.Method' => $options['webhooksOnMessageUpdateMethod'], 'Webhooks.OnMessageUpdate.Format' => $options['webhooksOnMessageUpdateFormat'], 'Webhooks.OnMessageRemove.Url' => $options['webhooksOnMessageRemoveUrl'], 'Webhooks.OnMessageRemove.Method' => $options['webhooksOnMessageRemoveMethod'], 'Webhooks.OnMessageRemove.Format' => $options['webhooksOnMessageRemoveFormat'], 'Webhooks.OnChannelAdd.Url' => $options['webhooksOnChannelAddUrl'], 'Webhooks.OnChannelAdd.Method' => $options['webhooksOnChannelAddMethod'], 'Webhooks.OnChannelAdd.Format' => $options['webhooksOnChannelAddFormat'], 'Webhooks.OnChannelDestroy.Url' => $options['webhooksOnChannelDestroyUrl'], 'Webhooks.OnChannelDestroy.Method' => $options['webhooksOnChannelDestroyMethod'], 'Webhooks.OnChannelDestroy.Format' => $options['webhooksOnChannelDestroyFormat'], 'Webhooks.OnChannelUpdate.Url' => $options['webhooksOnChannelUpdateUrl'], 'Webhooks.OnChannelUpdate.Method' => $options['webhooksOnChannelUpdateMethod'], 'Webhooks.OnChannelUpdate.Format' => $options['webhooksOnChannelUpdateFormat'], 'Webhooks.OnMemberAdd.Url' => $options['webhooksOnMemberAddUrl'], 'Webhooks.OnMemberAdd.Method' => $options['webhooksOnMemberAddMethod'], 'Webhooks.OnMemberAdd.Format' => $options['webhooksOnMemberAddFormat'], 'Webhooks.OnMemberRemove.Url' => $options['webhooksOnMemberRemoveUrl'], 'Webhooks.OnMemberRemove.Method' => $options['webhooksOnMemberRemoveMethod'], 'Webhooks.OnMemberRemove.Format' => $options['webhooksOnMemberRemoveFormat'], 'Webhooks.OnMessageSent.Url' => $options['webhooksOnMessageSentUrl'], 'Webhooks.OnMessageSent.Method' => $options['webhooksOnMessageSentMethod'], 'Webhooks.OnMessageSent.Format' => $options['webhooksOnMessageSentFormat'], 'Webhooks.OnMessageUpdated.Url' => $options['webhooksOnMessageUpdatedUrl'], 'Webhooks.OnMessageUpdated.Method' => $options['webhooksOnMessageUpdatedMethod'], 'Webhooks.OnMessageUpdated.Format' => $options['webhooksOnMessageUpdatedFormat'], 'Webhooks.OnMessageRemoved.Url' => $options['webhooksOnMessageRemovedUrl'], 'Webhooks.OnMessageRemoved.Method' => $options['webhooksOnMessageRemovedMethod'], 'Webhooks.OnMessageRemoved.Format' => $options['webhooksOnMessageRemovedFormat'], 'Webhooks.OnChannelAdded.Url' => $options['webhooksOnChannelAddedUrl'], 'Webhooks.OnChannelAdded.Method' => $options['webhooksOnChannelAddedMethod'], 'Webhooks.OnChannelAdded.Format' => $options['webhooksOnChannelAddedFormat'], 'Webhooks.OnChannelDestroyed.Url' => $options['webhooksOnChannelDestroyedUrl'], 'Webhooks.OnChannelDestroyed.Method' => $options['webhooksOnChannelDestroyedMethod'], 'Webhooks.OnChannelDestroyed.Format' => $options['webhooksOnChannelDestroyedFormat'], 'Webhooks.OnChannelUpdated.Url' => $options['webhooksOnChannelUpdatedUrl'], 'Webhooks.OnChannelUpdated.Method' => $options['webhooksOnChannelUpdatedMethod'], 'Webhooks.OnChannelUpdated.Format' => $options['webhooksOnChannelUpdatedFormat'], 'Webhooks.OnMemberAdded.Url' => $options['webhooksOnMemberAddedUrl'], 'Webhooks.OnMemberAdded.Method' => $options['webhooksOnMemberAddedMethod'], 'Webhooks.OnMemberAdded.Format' => $options['webhooksOnMemberAddedFormat'], 'Webhooks.OnMemberRemoved.Url' => $options['webhooksOnMemberRemovedUrl'], 'Webhooks.OnMemberRemoved.Method' => $options['webhooksOnMemberRemovedMethod'], 'Webhooks.OnMemberRemoved.Format' => $options['webhooksOnMemberRemovedFormat'], 'Limits.ChannelMembers' => $options['limitsChannelMembers'], 'Limits.UserChannels' => $options['limitsUserChannels'], )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new ServiceInstance($this->version, $payload, $this->solution['sid']); }
php
public function update($options = array()) { $options = new Values($options); $data = Values::of(array( 'FriendlyName' => $options['friendlyName'], 'DefaultServiceRoleSid' => $options['defaultServiceRoleSid'], 'DefaultChannelRoleSid' => $options['defaultChannelRoleSid'], 'DefaultChannelCreatorRoleSid' => $options['defaultChannelCreatorRoleSid'], 'ReadStatusEnabled' => Serialize::booleanToString($options['readStatusEnabled']), 'ReachabilityEnabled' => Serialize::booleanToString($options['reachabilityEnabled']), 'TypingIndicatorTimeout' => $options['typingIndicatorTimeout'], 'ConsumptionReportInterval' => $options['consumptionReportInterval'], 'Notifications.NewMessage.Enabled' => Serialize::booleanToString($options['notificationsNewMessageEnabled']), 'Notifications.NewMessage.Template' => $options['notificationsNewMessageTemplate'], 'Notifications.AddedToChannel.Enabled' => Serialize::booleanToString($options['notificationsAddedToChannelEnabled']), 'Notifications.AddedToChannel.Template' => $options['notificationsAddedToChannelTemplate'], 'Notifications.RemovedFromChannel.Enabled' => Serialize::booleanToString($options['notificationsRemovedFromChannelEnabled']), 'Notifications.RemovedFromChannel.Template' => $options['notificationsRemovedFromChannelTemplate'], 'Notifications.InvitedToChannel.Enabled' => Serialize::booleanToString($options['notificationsInvitedToChannelEnabled']), 'Notifications.InvitedToChannel.Template' => $options['notificationsInvitedToChannelTemplate'], 'PreWebhookUrl' => $options['preWebhookUrl'], 'PostWebhookUrl' => $options['postWebhookUrl'], 'WebhookMethod' => $options['webhookMethod'], 'WebhookFilters' => Serialize::map($options['webhookFilters'], function($e) { return $e; }), 'Webhooks.OnMessageSend.Url' => $options['webhooksOnMessageSendUrl'], 'Webhooks.OnMessageSend.Method' => $options['webhooksOnMessageSendMethod'], 'Webhooks.OnMessageSend.Format' => $options['webhooksOnMessageSendFormat'], 'Webhooks.OnMessageUpdate.Url' => $options['webhooksOnMessageUpdateUrl'], 'Webhooks.OnMessageUpdate.Method' => $options['webhooksOnMessageUpdateMethod'], 'Webhooks.OnMessageUpdate.Format' => $options['webhooksOnMessageUpdateFormat'], 'Webhooks.OnMessageRemove.Url' => $options['webhooksOnMessageRemoveUrl'], 'Webhooks.OnMessageRemove.Method' => $options['webhooksOnMessageRemoveMethod'], 'Webhooks.OnMessageRemove.Format' => $options['webhooksOnMessageRemoveFormat'], 'Webhooks.OnChannelAdd.Url' => $options['webhooksOnChannelAddUrl'], 'Webhooks.OnChannelAdd.Method' => $options['webhooksOnChannelAddMethod'], 'Webhooks.OnChannelAdd.Format' => $options['webhooksOnChannelAddFormat'], 'Webhooks.OnChannelDestroy.Url' => $options['webhooksOnChannelDestroyUrl'], 'Webhooks.OnChannelDestroy.Method' => $options['webhooksOnChannelDestroyMethod'], 'Webhooks.OnChannelDestroy.Format' => $options['webhooksOnChannelDestroyFormat'], 'Webhooks.OnChannelUpdate.Url' => $options['webhooksOnChannelUpdateUrl'], 'Webhooks.OnChannelUpdate.Method' => $options['webhooksOnChannelUpdateMethod'], 'Webhooks.OnChannelUpdate.Format' => $options['webhooksOnChannelUpdateFormat'], 'Webhooks.OnMemberAdd.Url' => $options['webhooksOnMemberAddUrl'], 'Webhooks.OnMemberAdd.Method' => $options['webhooksOnMemberAddMethod'], 'Webhooks.OnMemberAdd.Format' => $options['webhooksOnMemberAddFormat'], 'Webhooks.OnMemberRemove.Url' => $options['webhooksOnMemberRemoveUrl'], 'Webhooks.OnMemberRemove.Method' => $options['webhooksOnMemberRemoveMethod'], 'Webhooks.OnMemberRemove.Format' => $options['webhooksOnMemberRemoveFormat'], 'Webhooks.OnMessageSent.Url' => $options['webhooksOnMessageSentUrl'], 'Webhooks.OnMessageSent.Method' => $options['webhooksOnMessageSentMethod'], 'Webhooks.OnMessageSent.Format' => $options['webhooksOnMessageSentFormat'], 'Webhooks.OnMessageUpdated.Url' => $options['webhooksOnMessageUpdatedUrl'], 'Webhooks.OnMessageUpdated.Method' => $options['webhooksOnMessageUpdatedMethod'], 'Webhooks.OnMessageUpdated.Format' => $options['webhooksOnMessageUpdatedFormat'], 'Webhooks.OnMessageRemoved.Url' => $options['webhooksOnMessageRemovedUrl'], 'Webhooks.OnMessageRemoved.Method' => $options['webhooksOnMessageRemovedMethod'], 'Webhooks.OnMessageRemoved.Format' => $options['webhooksOnMessageRemovedFormat'], 'Webhooks.OnChannelAdded.Url' => $options['webhooksOnChannelAddedUrl'], 'Webhooks.OnChannelAdded.Method' => $options['webhooksOnChannelAddedMethod'], 'Webhooks.OnChannelAdded.Format' => $options['webhooksOnChannelAddedFormat'], 'Webhooks.OnChannelDestroyed.Url' => $options['webhooksOnChannelDestroyedUrl'], 'Webhooks.OnChannelDestroyed.Method' => $options['webhooksOnChannelDestroyedMethod'], 'Webhooks.OnChannelDestroyed.Format' => $options['webhooksOnChannelDestroyedFormat'], 'Webhooks.OnChannelUpdated.Url' => $options['webhooksOnChannelUpdatedUrl'], 'Webhooks.OnChannelUpdated.Method' => $options['webhooksOnChannelUpdatedMethod'], 'Webhooks.OnChannelUpdated.Format' => $options['webhooksOnChannelUpdatedFormat'], 'Webhooks.OnMemberAdded.Url' => $options['webhooksOnMemberAddedUrl'], 'Webhooks.OnMemberAdded.Method' => $options['webhooksOnMemberAddedMethod'], 'Webhooks.OnMemberAdded.Format' => $options['webhooksOnMemberAddedFormat'], 'Webhooks.OnMemberRemoved.Url' => $options['webhooksOnMemberRemovedUrl'], 'Webhooks.OnMemberRemoved.Method' => $options['webhooksOnMemberRemovedMethod'], 'Webhooks.OnMemberRemoved.Format' => $options['webhooksOnMemberRemovedFormat'], 'Limits.ChannelMembers' => $options['limitsChannelMembers'], 'Limits.UserChannels' => $options['limitsUserChannels'], )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new ServiceInstance($this->version, $payload, $this->solution['sid']); }
[ "public", "function", "update", "(", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'FriendlyName'", "=>", "$", "options", "[", "'friendlyName'", "]", ",", "'DefaultServiceRoleSid'", "=>", "$", "options", "[", "'defaultServiceRoleSid'", "]", ",", "'DefaultChannelRoleSid'", "=>", "$", "options", "[", "'defaultChannelRoleSid'", "]", ",", "'DefaultChannelCreatorRoleSid'", "=>", "$", "options", "[", "'defaultChannelCreatorRoleSid'", "]", ",", "'ReadStatusEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'readStatusEnabled'", "]", ")", ",", "'ReachabilityEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'reachabilityEnabled'", "]", ")", ",", "'TypingIndicatorTimeout'", "=>", "$", "options", "[", "'typingIndicatorTimeout'", "]", ",", "'ConsumptionReportInterval'", "=>", "$", "options", "[", "'consumptionReportInterval'", "]", ",", "'Notifications.NewMessage.Enabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'notificationsNewMessageEnabled'", "]", ")", ",", "'Notifications.NewMessage.Template'", "=>", "$", "options", "[", "'notificationsNewMessageTemplate'", "]", ",", "'Notifications.AddedToChannel.Enabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'notificationsAddedToChannelEnabled'", "]", ")", ",", "'Notifications.AddedToChannel.Template'", "=>", "$", "options", "[", "'notificationsAddedToChannelTemplate'", "]", ",", "'Notifications.RemovedFromChannel.Enabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'notificationsRemovedFromChannelEnabled'", "]", ")", ",", "'Notifications.RemovedFromChannel.Template'", "=>", "$", "options", "[", "'notificationsRemovedFromChannelTemplate'", "]", ",", "'Notifications.InvitedToChannel.Enabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'notificationsInvitedToChannelEnabled'", "]", ")", ",", "'Notifications.InvitedToChannel.Template'", "=>", "$", "options", "[", "'notificationsInvitedToChannelTemplate'", "]", ",", "'PreWebhookUrl'", "=>", "$", "options", "[", "'preWebhookUrl'", "]", ",", "'PostWebhookUrl'", "=>", "$", "options", "[", "'postWebhookUrl'", "]", ",", "'WebhookMethod'", "=>", "$", "options", "[", "'webhookMethod'", "]", ",", "'WebhookFilters'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'webhookFilters'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'Webhooks.OnMessageSend.Url'", "=>", "$", "options", "[", "'webhooksOnMessageSendUrl'", "]", ",", "'Webhooks.OnMessageSend.Method'", "=>", "$", "options", "[", "'webhooksOnMessageSendMethod'", "]", ",", "'Webhooks.OnMessageSend.Format'", "=>", "$", "options", "[", "'webhooksOnMessageSendFormat'", "]", ",", "'Webhooks.OnMessageUpdate.Url'", "=>", "$", "options", "[", "'webhooksOnMessageUpdateUrl'", "]", ",", "'Webhooks.OnMessageUpdate.Method'", "=>", "$", "options", "[", "'webhooksOnMessageUpdateMethod'", "]", ",", "'Webhooks.OnMessageUpdate.Format'", "=>", "$", "options", "[", "'webhooksOnMessageUpdateFormat'", "]", ",", "'Webhooks.OnMessageRemove.Url'", "=>", "$", "options", "[", "'webhooksOnMessageRemoveUrl'", "]", ",", "'Webhooks.OnMessageRemove.Method'", "=>", "$", "options", "[", "'webhooksOnMessageRemoveMethod'", "]", ",", "'Webhooks.OnMessageRemove.Format'", "=>", "$", "options", "[", "'webhooksOnMessageRemoveFormat'", "]", ",", "'Webhooks.OnChannelAdd.Url'", "=>", "$", "options", "[", "'webhooksOnChannelAddUrl'", "]", ",", "'Webhooks.OnChannelAdd.Method'", "=>", "$", "options", "[", "'webhooksOnChannelAddMethod'", "]", ",", "'Webhooks.OnChannelAdd.Format'", "=>", "$", "options", "[", "'webhooksOnChannelAddFormat'", "]", ",", "'Webhooks.OnChannelDestroy.Url'", "=>", "$", "options", "[", "'webhooksOnChannelDestroyUrl'", "]", ",", "'Webhooks.OnChannelDestroy.Method'", "=>", "$", "options", "[", "'webhooksOnChannelDestroyMethod'", "]", ",", "'Webhooks.OnChannelDestroy.Format'", "=>", "$", "options", "[", "'webhooksOnChannelDestroyFormat'", "]", ",", "'Webhooks.OnChannelUpdate.Url'", "=>", "$", "options", "[", "'webhooksOnChannelUpdateUrl'", "]", ",", "'Webhooks.OnChannelUpdate.Method'", "=>", "$", "options", "[", "'webhooksOnChannelUpdateMethod'", "]", ",", "'Webhooks.OnChannelUpdate.Format'", "=>", "$", "options", "[", "'webhooksOnChannelUpdateFormat'", "]", ",", "'Webhooks.OnMemberAdd.Url'", "=>", "$", "options", "[", "'webhooksOnMemberAddUrl'", "]", ",", "'Webhooks.OnMemberAdd.Method'", "=>", "$", "options", "[", "'webhooksOnMemberAddMethod'", "]", ",", "'Webhooks.OnMemberAdd.Format'", "=>", "$", "options", "[", "'webhooksOnMemberAddFormat'", "]", ",", "'Webhooks.OnMemberRemove.Url'", "=>", "$", "options", "[", "'webhooksOnMemberRemoveUrl'", "]", ",", "'Webhooks.OnMemberRemove.Method'", "=>", "$", "options", "[", "'webhooksOnMemberRemoveMethod'", "]", ",", "'Webhooks.OnMemberRemove.Format'", "=>", "$", "options", "[", "'webhooksOnMemberRemoveFormat'", "]", ",", "'Webhooks.OnMessageSent.Url'", "=>", "$", "options", "[", "'webhooksOnMessageSentUrl'", "]", ",", "'Webhooks.OnMessageSent.Method'", "=>", "$", "options", "[", "'webhooksOnMessageSentMethod'", "]", ",", "'Webhooks.OnMessageSent.Format'", "=>", "$", "options", "[", "'webhooksOnMessageSentFormat'", "]", ",", "'Webhooks.OnMessageUpdated.Url'", "=>", "$", "options", "[", "'webhooksOnMessageUpdatedUrl'", "]", ",", "'Webhooks.OnMessageUpdated.Method'", "=>", "$", "options", "[", "'webhooksOnMessageUpdatedMethod'", "]", ",", "'Webhooks.OnMessageUpdated.Format'", "=>", "$", "options", "[", "'webhooksOnMessageUpdatedFormat'", "]", ",", "'Webhooks.OnMessageRemoved.Url'", "=>", "$", "options", "[", "'webhooksOnMessageRemovedUrl'", "]", ",", "'Webhooks.OnMessageRemoved.Method'", "=>", "$", "options", "[", "'webhooksOnMessageRemovedMethod'", "]", ",", "'Webhooks.OnMessageRemoved.Format'", "=>", "$", "options", "[", "'webhooksOnMessageRemovedFormat'", "]", ",", "'Webhooks.OnChannelAdded.Url'", "=>", "$", "options", "[", "'webhooksOnChannelAddedUrl'", "]", ",", "'Webhooks.OnChannelAdded.Method'", "=>", "$", "options", "[", "'webhooksOnChannelAddedMethod'", "]", ",", "'Webhooks.OnChannelAdded.Format'", "=>", "$", "options", "[", "'webhooksOnChannelAddedFormat'", "]", ",", "'Webhooks.OnChannelDestroyed.Url'", "=>", "$", "options", "[", "'webhooksOnChannelDestroyedUrl'", "]", ",", "'Webhooks.OnChannelDestroyed.Method'", "=>", "$", "options", "[", "'webhooksOnChannelDestroyedMethod'", "]", ",", "'Webhooks.OnChannelDestroyed.Format'", "=>", "$", "options", "[", "'webhooksOnChannelDestroyedFormat'", "]", ",", "'Webhooks.OnChannelUpdated.Url'", "=>", "$", "options", "[", "'webhooksOnChannelUpdatedUrl'", "]", ",", "'Webhooks.OnChannelUpdated.Method'", "=>", "$", "options", "[", "'webhooksOnChannelUpdatedMethod'", "]", ",", "'Webhooks.OnChannelUpdated.Format'", "=>", "$", "options", "[", "'webhooksOnChannelUpdatedFormat'", "]", ",", "'Webhooks.OnMemberAdded.Url'", "=>", "$", "options", "[", "'webhooksOnMemberAddedUrl'", "]", ",", "'Webhooks.OnMemberAdded.Method'", "=>", "$", "options", "[", "'webhooksOnMemberAddedMethod'", "]", ",", "'Webhooks.OnMemberAdded.Format'", "=>", "$", "options", "[", "'webhooksOnMemberAddedFormat'", "]", ",", "'Webhooks.OnMemberRemoved.Url'", "=>", "$", "options", "[", "'webhooksOnMemberRemovedUrl'", "]", ",", "'Webhooks.OnMemberRemoved.Method'", "=>", "$", "options", "[", "'webhooksOnMemberRemovedMethod'", "]", ",", "'Webhooks.OnMemberRemoved.Format'", "=>", "$", "options", "[", "'webhooksOnMemberRemovedFormat'", "]", ",", "'Limits.ChannelMembers'", "=>", "$", "options", "[", "'limitsChannelMembers'", "]", ",", "'Limits.UserChannels'", "=>", "$", "options", "[", "'limitsUserChannels'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "update", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "ServiceInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}" ]
Update the ServiceInstance @param array|Options $options Optional Arguments @return ServiceInstance Updated ServiceInstance @throws TwilioException When an HTTP error occurs.
[ "Update", "the", "ServiceInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V1/ServiceContext.php#L86-L170
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Queue/MemberContext.php
MemberContext.update
public function update($url, $method) { $data = Values::of(array('Url' => $url, 'Method' => $method, )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new MemberInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['queueSid'], $this->solution['callSid'] ); }
php
public function update($url, $method) { $data = Values::of(array('Url' => $url, 'Method' => $method, )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new MemberInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['queueSid'], $this->solution['callSid'] ); }
[ "public", "function", "update", "(", "$", "url", ",", "$", "method", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Url'", "=>", "$", "url", ",", "'Method'", "=>", "$", "method", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "update", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "MemberInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'queueSid'", "]", ",", "$", "this", "->", "solution", "[", "'callSid'", "]", ")", ";", "}" ]
Update the MemberInstance @param string $url The absolute URL of the Queue resource @param string $method How to pass the update request data @return MemberInstance Updated MemberInstance @throws TwilioException When an HTTP error occurs.
[ "Update", "the", "MemberInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Queue/MemberContext.php#L72-L89
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsInstance.php
TaskQueueCumulativeStatisticsInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new TaskQueueCumulativeStatisticsContext( $this->version, $this->solution['workspaceSid'], $this->solution['taskQueueSid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new TaskQueueCumulativeStatisticsContext( $this->version, $this->solution['workspaceSid'], $this->solution['taskQueueSid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "TaskQueueCumulativeStatisticsContext", "(", "$", "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\TaskQueueCumulativeStatisticsContext Context for this TaskQueueCumulativeStatisticsInstance
[ "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/TaskQueueCumulativeStatisticsInstance.php#L90-L100
twilio/twilio-php
Twilio/Rest/Serverless/V1/Service/Asset/AssetVersionList.php
AssetVersionList.getContext
public function getContext($sid) { return new AssetVersionContext( $this->version, $this->solution['serviceSid'], $this->solution['assetSid'], $sid ); }
php
public function getContext($sid) { return new AssetVersionContext( $this->version, $this->solution['serviceSid'], $this->solution['assetSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "AssetVersionContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'assetSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a AssetVersionContext @param string $sid Asset Version Sid. @return \Twilio\Rest\Serverless\V1\Service\Asset\AssetVersionContext
[ "Constructs", "a", "AssetVersionContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/Service/Asset/AssetVersionList.php#L157-L164
twilio/twilio-php
Twilio/Rest/Serverless/V1/Service/Asset/AssetVersionInstance.php
AssetVersionInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new AssetVersionContext( $this->version, $this->solution['serviceSid'], $this->solution['assetSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new AssetVersionContext( $this->version, $this->solution['serviceSid'], $this->solution['assetSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "AssetVersionContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'assetSid'", "]", ",", "$", "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\Serverless\V1\Service\Asset\AssetVersionContext Context for this AssetVersionInstance
[ "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/Serverless/V1/Service/Asset/AssetVersionInstance.php#L74-L85
twilio/twilio-php
Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepContext.php
ExecutionStepContext.getStepContext
protected function getStepContext() { if (!$this->_stepContext) { $this->_stepContext = new ExecutionStepContextList( $this->version, $this->solution['flowSid'], $this->solution['executionSid'], $this->solution['sid'] ); } return $this->_stepContext; }
php
protected function getStepContext() { if (!$this->_stepContext) { $this->_stepContext = new ExecutionStepContextList( $this->version, $this->solution['flowSid'], $this->solution['executionSid'], $this->solution['sid'] ); } return $this->_stepContext; }
[ "protected", "function", "getStepContext", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_stepContext", ")", "{", "$", "this", "->", "_stepContext", "=", "new", "ExecutionStepContextList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'flowSid'", "]", ",", "$", "this", "->", "solution", "[", "'executionSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_stepContext", ";", "}" ]
Access the stepContext @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionStep\ExecutionStepContextList
[ "Access", "the", "stepContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepContext.php#L72-L83
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadInstance.php
PayloadInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new PayloadContext( $this->version, $this->solution['accountSid'], $this->solution['referenceSid'], $this->solution['addOnResultSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new PayloadContext( $this->version, $this->solution['accountSid'], $this->solution['referenceSid'], $this->solution['addOnResultSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "PayloadContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'referenceSid'", "]", ",", "$", "this", "->", "solution", "[", "'addOnResultSid'", "]", ",", "$", "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\Recording\AddOnResult\PayloadContext Context for this PayloadInstance
[ "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/Recording/AddOnResult/PayloadInstance.php#L78-L90
twilio/twilio-php
Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepList.php
ExecutionStepList.getContext
public function getContext($sid) { return new ExecutionStepContext( $this->version, $this->solution['flowSid'], $this->solution['executionSid'], $sid ); }
php
public function getContext($sid) { return new ExecutionStepContext( $this->version, $this->solution['flowSid'], $this->solution['executionSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "ExecutionStepContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'flowSid'", "]", ",", "$", "this", "->", "solution", "[", "'executionSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a ExecutionStepContext @param string $sid Step Sid. @return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionStepContext
[ "Constructs", "a", "ExecutionStepContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepList.php#L126-L133
twilio/twilio-php
Twilio/Rest/Preview/Sync/Service/SyncMapContext.php
SyncMapContext.getSyncMapItems
protected function getSyncMapItems() { if (!$this->_syncMapItems) { $this->_syncMapItems = new SyncMapItemList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_syncMapItems; }
php
protected function getSyncMapItems() { if (!$this->_syncMapItems) { $this->_syncMapItems = new SyncMapItemList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_syncMapItems; }
[ "protected", "function", "getSyncMapItems", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_syncMapItems", ")", "{", "$", "this", "->", "_syncMapItems", "=", "new", "SyncMapItemList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_syncMapItems", ";", "}" ]
Access the syncMapItems @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapItemList
[ "Access", "the", "syncMapItems" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/SyncMapContext.php#L86-L96
twilio/twilio-php
Twilio/Rest/Preview/Sync/Service/SyncMapContext.php
SyncMapContext.getSyncMapPermissions
protected function getSyncMapPermissions() { if (!$this->_syncMapPermissions) { $this->_syncMapPermissions = new SyncMapPermissionList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_syncMapPermissions; }
php
protected function getSyncMapPermissions() { if (!$this->_syncMapPermissions) { $this->_syncMapPermissions = new SyncMapPermissionList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_syncMapPermissions; }
[ "protected", "function", "getSyncMapPermissions", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_syncMapPermissions", ")", "{", "$", "this", "->", "_syncMapPermissions", "=", "new", "SyncMapPermissionList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_syncMapPermissions", ";", "}" ]
Access the syncMapPermissions @return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapPermissionList
[ "Access", "the", "syncMapPermissions" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/SyncMapContext.php#L103-L113
twilio/twilio-php
Twilio/Rest/Proxy/V1/Service/Session/ParticipantList.php
ParticipantList.create
public function create($identifier, $options = array()) { $options = new Values($options); $data = Values::of(array( 'Identifier' => $identifier, 'FriendlyName' => $options['friendlyName'], 'ProxyIdentifier' => $options['proxyIdentifier'], 'ProxyIdentifierSid' => $options['proxyIdentifierSid'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new ParticipantInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['sessionSid'] ); }
php
public function create($identifier, $options = array()) { $options = new Values($options); $data = Values::of(array( 'Identifier' => $identifier, 'FriendlyName' => $options['friendlyName'], 'ProxyIdentifier' => $options['proxyIdentifier'], 'ProxyIdentifierSid' => $options['proxyIdentifierSid'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new ParticipantInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['sessionSid'] ); }
[ "public", "function", "create", "(", "$", "identifier", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Identifier'", "=>", "$", "identifier", ",", "'FriendlyName'", "=>", "$", "options", "[", "'friendlyName'", "]", ",", "'ProxyIdentifier'", "=>", "$", "options", "[", "'proxyIdentifier'", "]", ",", "'ProxyIdentifierSid'", "=>", "$", "options", "[", "'proxyIdentifierSid'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "ParticipantInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sessionSid'", "]", ")", ";", "}" ]
Create a new ParticipantInstance @param string $identifier The phone number of the 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/Proxy/V1/Service/Session/ParticipantList.php#L132-L155
twilio/twilio-php
Twilio/Rest/Proxy/V1/Service/Session/ParticipantList.php
ParticipantList.getContext
public function getContext($sid) { return new ParticipantContext( $this->version, $this->solution['serviceSid'], $this->solution['sessionSid'], $sid ); }
php
public function getContext($sid) { return new ParticipantContext( $this->version, $this->solution['serviceSid'], $this->solution['sessionSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "ParticipantContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sessionSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a ParticipantContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Proxy\V1\Service\Session\ParticipantContext
[ "Constructs", "a", "ParticipantContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Proxy/V1/Service/Session/ParticipantList.php#L163-L170
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadList.php
PayloadList.getContext
public function getContext($sid) { return new PayloadContext( $this->version, $this->solution['accountSid'], $this->solution['referenceSid'], $this->solution['addOnResultSid'], $sid ); }
php
public function getContext($sid) { return new PayloadContext( $this->version, $this->solution['accountSid'], $this->solution['referenceSid'], $this->solution['addOnResultSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "PayloadContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'referenceSid'", "]", ",", "$", "this", "->", "solution", "[", "'addOnResultSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a PayloadContext @param string $sid The unique string that identifies the resource to fetch @return \Twilio\Rest\Api\V2010\Account\Recording\AddOnResult\PayloadContext
[ "Constructs", "a", "PayloadContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadList.php#L134-L142
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/TriggerList.php
TriggerList.create
public function create($callbackUrl, $triggerValue, $usageCategory, $options = array()) { $options = new Values($options); $data = Values::of(array( 'CallbackUrl' => $callbackUrl, 'TriggerValue' => $triggerValue, 'UsageCategory' => $usageCategory, 'CallbackMethod' => $options['callbackMethod'], 'FriendlyName' => $options['friendlyName'], 'Recurring' => $options['recurring'], 'TriggerBy' => $options['triggerBy'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new TriggerInstance($this->version, $payload, $this->solution['accountSid']); }
php
public function create($callbackUrl, $triggerValue, $usageCategory, $options = array()) { $options = new Values($options); $data = Values::of(array( 'CallbackUrl' => $callbackUrl, 'TriggerValue' => $triggerValue, 'UsageCategory' => $usageCategory, 'CallbackMethod' => $options['callbackMethod'], 'FriendlyName' => $options['friendlyName'], 'Recurring' => $options['recurring'], 'TriggerBy' => $options['triggerBy'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new TriggerInstance($this->version, $payload, $this->solution['accountSid']); }
[ "public", "function", "create", "(", "$", "callbackUrl", ",", "$", "triggerValue", ",", "$", "usageCategory", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'CallbackUrl'", "=>", "$", "callbackUrl", ",", "'TriggerValue'", "=>", "$", "triggerValue", ",", "'UsageCategory'", "=>", "$", "usageCategory", ",", "'CallbackMethod'", "=>", "$", "options", "[", "'callbackMethod'", "]", ",", "'FriendlyName'", "=>", "$", "options", "[", "'friendlyName'", "]", ",", "'Recurring'", "=>", "$", "options", "[", "'recurring'", "]", ",", "'TriggerBy'", "=>", "$", "options", "[", "'triggerBy'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "TriggerInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}" ]
Create a new TriggerInstance @param string $callbackUrl The URL we call when the trigger fires @param string $triggerValue The usage value at which the trigger should fire @param string $usageCategory The usage category the trigger watches @param array|Options $options Optional Arguments @return TriggerInstance Newly created TriggerInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "TriggerInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/TriggerList.php#L45-L66
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingList.php
AuthRegistrationsCredentialListMappingList.create
public function create($credentialListSid) { $data = Values::of(array('CredentialListSid' => $credentialListSid, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AuthRegistrationsCredentialListMappingInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['domainSid'] ); }
php
public function create($credentialListSid) { $data = Values::of(array('CredentialListSid' => $credentialListSid, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AuthRegistrationsCredentialListMappingInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['domainSid'] ); }
[ "public", "function", "create", "(", "$", "credentialListSid", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'CredentialListSid'", "=>", "$", "credentialListSid", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "AuthRegistrationsCredentialListMappingInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'domainSid'", "]", ")", ";", "}" ]
Create a new AuthRegistrationsCredentialListMappingInstance @param string $credentialListSid The SID of the CredentialList resource to map to the SIP domain @return AuthRegistrationsCredentialListMappingInstance Newly created AuthRegistrationsCredentialListMappingInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "AuthRegistrationsCredentialListMappingInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingList.php#L43-L59
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingList.php
AuthRegistrationsCredentialListMappingList.getContext
public function getContext($sid) { return new AuthRegistrationsCredentialListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
php
public function getContext($sid) { return new AuthRegistrationsCredentialListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "AuthRegistrationsCredentialListMappingContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'domainSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a AuthRegistrationsCredentialListMappingContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypes\AuthTypeRegistrations\AuthRegistrationsCredentialListMappingContext
[ "Constructs", "a", "AuthRegistrationsCredentialListMappingContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingList.php#L157-L164
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceInstance.php
WorkspaceInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new WorkspaceContext($this->version, $this->solution['sid']); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new WorkspaceContext($this->version, $this->solution['sid']); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "WorkspaceContext", "(", "$", "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\Taskrouter\V1\WorkspaceContext Context for this WorkspaceInstance
[ "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/WorkspaceInstance.php#L88-L94
twilio/twilio-php
Twilio/Rest/Chat/V2/Service/BindingInstance.php
BindingInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new BindingContext( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new BindingContext( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "BindingContext", "(", "$", "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\V2\Service\BindingContext Context for this BindingInstance
[ "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/BindingInstance.php#L72-L82
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/ApplicationInstance.php
ApplicationInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new ApplicationContext( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new ApplicationContext( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "ApplicationContext", "(", "$", "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\ApplicationContext Context for this ApplicationInstance
[ "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/ApplicationInstance.php#L88-L98
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsContext.php
WorkerStatisticsContext.fetch
public function fetch($options = array()) { $options = new Values($options); $params = Values::of(array( 'Minutes' => $options['minutes'], 'StartDate' => Serialize::iso8601DateTime($options['startDate']), 'EndDate' => Serialize::iso8601DateTime($options['endDate']), 'TaskChannel' => $options['taskChannel'], )); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new WorkerStatisticsInstance( $this->version, $payload, $this->solution['workspaceSid'], $this->solution['workerSid'] ); }
php
public function fetch($options = array()) { $options = new Values($options); $params = Values::of(array( 'Minutes' => $options['minutes'], 'StartDate' => Serialize::iso8601DateTime($options['startDate']), 'EndDate' => Serialize::iso8601DateTime($options['endDate']), 'TaskChannel' => $options['taskChannel'], )); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new WorkerStatisticsInstance( $this->version, $payload, $this->solution['workspaceSid'], $this->solution['workerSid'] ); }
[ "public", "function", "fetch", "(", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "params", "=", "Values", "::", "of", "(", "array", "(", "'Minutes'", "=>", "$", "options", "[", "'minutes'", "]", ",", "'StartDate'", "=>", "Serialize", "::", "iso8601DateTime", "(", "$", "options", "[", "'startDate'", "]", ")", ",", "'EndDate'", "=>", "Serialize", "::", "iso8601DateTime", "(", "$", "options", "[", "'endDate'", "]", ")", ",", "'TaskChannel'", "=>", "$", "options", "[", "'taskChannel'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "fetch", "(", "'GET'", ",", "$", "this", "->", "uri", ",", "$", "params", ")", ";", "return", "new", "WorkerStatisticsInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "this", "->", "solution", "[", "'workerSid'", "]", ")", ";", "}" ]
Fetch a WorkerStatisticsInstance @param array|Options $options Optional Arguments @return WorkerStatisticsInstance Fetched WorkerStatisticsInstance @throws TwilioException When an HTTP error occurs.
[ "Fetch", "a", "WorkerStatisticsInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsContext.php#L43-L65
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/DomainContext.php
DomainContext.getIpAccessControlListMappings
protected function getIpAccessControlListMappings() { if (!$this->_ipAccessControlListMappings) { $this->_ipAccessControlListMappings = new IpAccessControlListMappingList( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->_ipAccessControlListMappings; }
php
protected function getIpAccessControlListMappings() { if (!$this->_ipAccessControlListMappings) { $this->_ipAccessControlListMappings = new IpAccessControlListMappingList( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->_ipAccessControlListMappings; }
[ "protected", "function", "getIpAccessControlListMappings", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_ipAccessControlListMappings", ")", "{", "$", "this", "->", "_ipAccessControlListMappings", "=", "new", "IpAccessControlListMappingList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_ipAccessControlListMappings", ";", "}" ]
Access the ipAccessControlListMappings @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\IpAccessControlListMappingList
[ "Access", "the", "ipAccessControlListMappings" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/DomainContext.php#L127-L137
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/DomainContext.php
DomainContext.getCredentialListMappings
protected function getCredentialListMappings() { if (!$this->_credentialListMappings) { $this->_credentialListMappings = new CredentialListMappingList( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->_credentialListMappings; }
php
protected function getCredentialListMappings() { if (!$this->_credentialListMappings) { $this->_credentialListMappings = new CredentialListMappingList( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->_credentialListMappings; }
[ "protected", "function", "getCredentialListMappings", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_credentialListMappings", ")", "{", "$", "this", "->", "_credentialListMappings", "=", "new", "CredentialListMappingList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_credentialListMappings", ";", "}" ]
Access the credentialListMappings @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\CredentialListMappingList
[ "Access", "the", "credentialListMappings" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/DomainContext.php#L144-L154
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/DomainContext.php
DomainContext.getAuth
protected function getAuth() { if (!$this->_auth) { $this->_auth = new AuthTypesList( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->_auth; }
php
protected function getAuth() { if (!$this->_auth) { $this->_auth = new AuthTypesList( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->_auth; }
[ "protected", "function", "getAuth", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_auth", ")", "{", "$", "this", "->", "_auth", "=", "new", "AuthTypesList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_auth", ";", "}" ]
Access the auth @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypesList
[ "Access", "the", "auth" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/DomainContext.php#L161-L171
twilio/twilio-php
Twilio/Version.php
Version.exception
protected function exception($response, $header) { $message = '[HTTP ' . $response->getStatusCode() . '] ' . $header; $content = $response->getContent(); if (is_array($content)) { $message .= isset($content['message']) ? ': ' . $content['message'] : ''; $code = isset($content['code']) ? $content['code'] : $response->getStatusCode(); return new RestException($message, $code, $response->getStatusCode()); } else { return new RestException($message, $response->getStatusCode(), $response->getStatusCode()); } }
php
protected function exception($response, $header) { $message = '[HTTP ' . $response->getStatusCode() . '] ' . $header; $content = $response->getContent(); if (is_array($content)) { $message .= isset($content['message']) ? ': ' . $content['message'] : ''; $code = isset($content['code']) ? $content['code'] : $response->getStatusCode(); return new RestException($message, $code, $response->getStatusCode()); } else { return new RestException($message, $response->getStatusCode(), $response->getStatusCode()); } }
[ "protected", "function", "exception", "(", "$", "response", ",", "$", "header", ")", "{", "$", "message", "=", "'[HTTP '", ".", "$", "response", "->", "getStatusCode", "(", ")", ".", "'] '", ".", "$", "header", ";", "$", "content", "=", "$", "response", "->", "getContent", "(", ")", ";", "if", "(", "is_array", "(", "$", "content", ")", ")", "{", "$", "message", ".=", "isset", "(", "$", "content", "[", "'message'", "]", ")", "?", "': '", ".", "$", "content", "[", "'message'", "]", ":", "''", ";", "$", "code", "=", "isset", "(", "$", "content", "[", "'code'", "]", ")", "?", "$", "content", "[", "'code'", "]", ":", "$", "response", "->", "getStatusCode", "(", ")", ";", "return", "new", "RestException", "(", "$", "message", ",", "$", "code", ",", "$", "response", "->", "getStatusCode", "(", ")", ")", ";", "}", "else", "{", "return", "new", "RestException", "(", "$", "message", ",", "$", "response", "->", "getStatusCode", "(", ")", ",", "$", "response", "->", "getStatusCode", "(", ")", ")", ";", "}", "}" ]
Create the best possible exception for the response. Attempts to parse the response for Twilio Standard error messages and use those to populate the exception, falls back to generic error message and HTTP status code. @param Response $response Error response @param string $header Header for exception message @return TwilioException
[ "Create", "the", "best", "possible", "exception", "for", "the", "response", "." ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Version.php#L78-L89
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingList.php
AuthCallsCredentialListMappingList.getContext
public function getContext($sid) { return new AuthCallsCredentialListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
php
public function getContext($sid) { return new AuthCallsCredentialListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "AuthCallsCredentialListMappingContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'domainSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a AuthCallsCredentialListMappingContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\AuthTypes\AuthTypeCalls\AuthCallsCredentialListMappingContext
[ "Constructs", "a", "AuthCallsCredentialListMappingContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingList.php#L156-L163
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingInstance.php
AuthCallsCredentialListMappingInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new AuthCallsCredentialListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new AuthCallsCredentialListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "AuthCallsCredentialListMappingContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'domainSid'", "]", ",", "$", "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\Sip\Domain\AuthTypes\AuthTypeCalls\AuthCallsCredentialListMappingContext Context for this AuthCallsCredentialListMappingInstance
[ "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/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingInstance.php#L62-L73
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/SigningKeyInstance.php
SigningKeyInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new SigningKeyContext( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new SigningKeyContext( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "SigningKeyContext", "(", "$", "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\SigningKeyContext Context for this SigningKeyInstance
[ "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/SigningKeyInstance.php#L57-L67
twilio/twilio-php
Twilio/Rest/Fax/V1/FaxInstance.php
FaxInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new FaxContext($this->version, $this->solution['sid']); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new FaxContext($this->version, $this->solution['sid']); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "FaxContext", "(", "$", "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\Fax\V1\FaxContext Context for this FaxInstance
[ "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/Fax/V1/FaxInstance.php#L86-L92
twilio/twilio-php
Twilio/Rest/Studio/V1/Flow/Engagement/StepList.php
StepList.getContext
public function getContext($sid) { return new StepContext( $this->version, $this->solution['flowSid'], $this->solution['engagementSid'], $sid ); }
php
public function getContext($sid) { return new StepContext( $this->version, $this->solution['flowSid'], $this->solution['engagementSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "StepContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'flowSid'", "]", ",", "$", "this", "->", "solution", "[", "'engagementSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a StepContext @param string $sid Step Sid. @return \Twilio\Rest\Studio\V1\Flow\Engagement\StepContext
[ "Constructs", "a", "StepContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/Flow/Engagement/StepList.php#L126-L133
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileList.php
MobileList.page
public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) { $options = new Values($options); $params = Values::of(array( 'AreaCode' => $options['areaCode'], 'Contains' => $options['contains'], 'SmsEnabled' => Serialize::booleanToString($options['smsEnabled']), 'MmsEnabled' => Serialize::booleanToString($options['mmsEnabled']), 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']), 'ExcludeAllAddressRequired' => Serialize::booleanToString($options['excludeAllAddressRequired']), 'ExcludeLocalAddressRequired' => Serialize::booleanToString($options['excludeLocalAddressRequired']), 'ExcludeForeignAddressRequired' => Serialize::booleanToString($options['excludeForeignAddressRequired']), 'Beta' => Serialize::booleanToString($options['beta']), 'NearNumber' => $options['nearNumber'], 'NearLatLong' => $options['nearLatLong'], 'Distance' => $options['distance'], 'InPostalCode' => $options['inPostalCode'], 'InRegion' => $options['inRegion'], 'InRateCenter' => $options['inRateCenter'], 'InLata' => $options['inLata'], 'InLocality' => $options['inLocality'], 'FaxEnabled' => Serialize::booleanToString($options['faxEnabled']), 'PageToken' => $pageToken, 'Page' => $pageNumber, 'PageSize' => $pageSize, )); $response = $this->version->page( 'GET', $this->uri, $params ); return new MobilePage($this->version, $response, $this->solution); }
php
public function page($options = array(), $pageSize = Values::NONE, $pageToken = Values::NONE, $pageNumber = Values::NONE) { $options = new Values($options); $params = Values::of(array( 'AreaCode' => $options['areaCode'], 'Contains' => $options['contains'], 'SmsEnabled' => Serialize::booleanToString($options['smsEnabled']), 'MmsEnabled' => Serialize::booleanToString($options['mmsEnabled']), 'VoiceEnabled' => Serialize::booleanToString($options['voiceEnabled']), 'ExcludeAllAddressRequired' => Serialize::booleanToString($options['excludeAllAddressRequired']), 'ExcludeLocalAddressRequired' => Serialize::booleanToString($options['excludeLocalAddressRequired']), 'ExcludeForeignAddressRequired' => Serialize::booleanToString($options['excludeForeignAddressRequired']), 'Beta' => Serialize::booleanToString($options['beta']), 'NearNumber' => $options['nearNumber'], 'NearLatLong' => $options['nearLatLong'], 'Distance' => $options['distance'], 'InPostalCode' => $options['inPostalCode'], 'InRegion' => $options['inRegion'], 'InRateCenter' => $options['inRateCenter'], 'InLata' => $options['inLata'], 'InLocality' => $options['inLocality'], 'FaxEnabled' => Serialize::booleanToString($options['faxEnabled']), 'PageToken' => $pageToken, 'Page' => $pageNumber, 'PageSize' => $pageSize, )); $response = $this->version->page( 'GET', $this->uri, $params ); return new MobilePage($this->version, $response, $this->solution); }
[ "public", "function", "page", "(", "$", "options", "=", "array", "(", ")", ",", "$", "pageSize", "=", "Values", "::", "NONE", ",", "$", "pageToken", "=", "Values", "::", "NONE", ",", "$", "pageNumber", "=", "Values", "::", "NONE", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "params", "=", "Values", "::", "of", "(", "array", "(", "'AreaCode'", "=>", "$", "options", "[", "'areaCode'", "]", ",", "'Contains'", "=>", "$", "options", "[", "'contains'", "]", ",", "'SmsEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'smsEnabled'", "]", ")", ",", "'MmsEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'mmsEnabled'", "]", ")", ",", "'VoiceEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'voiceEnabled'", "]", ")", ",", "'ExcludeAllAddressRequired'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'excludeAllAddressRequired'", "]", ")", ",", "'ExcludeLocalAddressRequired'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'excludeLocalAddressRequired'", "]", ")", ",", "'ExcludeForeignAddressRequired'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'excludeForeignAddressRequired'", "]", ")", ",", "'Beta'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'beta'", "]", ")", ",", "'NearNumber'", "=>", "$", "options", "[", "'nearNumber'", "]", ",", "'NearLatLong'", "=>", "$", "options", "[", "'nearLatLong'", "]", ",", "'Distance'", "=>", "$", "options", "[", "'distance'", "]", ",", "'InPostalCode'", "=>", "$", "options", "[", "'inPostalCode'", "]", ",", "'InRegion'", "=>", "$", "options", "[", "'inRegion'", "]", ",", "'InRateCenter'", "=>", "$", "options", "[", "'inRateCenter'", "]", ",", "'InLata'", "=>", "$", "options", "[", "'inLata'", "]", ",", "'InLocality'", "=>", "$", "options", "[", "'inLocality'", "]", ",", "'FaxEnabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'faxEnabled'", "]", ")", ",", "'PageToken'", "=>", "$", "pageToken", ",", "'Page'", "=>", "$", "pageNumber", ",", "'PageSize'", "=>", "$", "pageSize", ",", ")", ")", ";", "$", "response", "=", "$", "this", "->", "version", "->", "page", "(", "'GET'", ",", "$", "this", "->", "uri", ",", "$", "params", ")", ";", "return", "new", "MobilePage", "(", "$", "this", "->", "version", ",", "$", "response", ",", "$", "this", "->", "solution", ")", ";", "}" ]
Retrieve a single page of MobileInstance records from the API. Request is executed immediately @param array|Options $options Optional Arguments @param mixed $pageSize Number of records to return, defaults to 50 @param string $pageToken PageToken provided by the API @param mixed $pageNumber Page Number, this value is simply for client state @return \Twilio\Page Page of MobileInstance
[ "Retrieve", "a", "single", "page", "of", "MobileInstance", "records", "from", "the", "API", ".", "Request", "is", "executed", "immediately" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileList.php#L93-L126
twilio/twilio-php
Twilio/Rest/Messaging/V1/Service/AlphaSenderInstance.php
AlphaSenderInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new AlphaSenderContext( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new AlphaSenderContext( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "AlphaSenderContext", "(", "$", "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\Messaging\V1\Service\AlphaSenderContext Context for this AlphaSenderInstance
[ "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/Messaging/V1/Service/AlphaSenderInstance.php#L67-L77
twilio/twilio-php
Twilio/Rest/Lookups/V1/PhoneNumberContext.php
PhoneNumberContext.fetch
public function fetch($options = array()) { $options = new Values($options); $params = Values::of(array( 'CountryCode' => $options['countryCode'], 'Type' => Serialize::map($options['type'], function($e) { return $e; }), 'AddOns' => Serialize::map($options['addOns'], function($e) { return $e; }), )); $params = array_merge($params, Serialize::prefixedCollapsibleMap($options['addOnsData'], 'AddOns')); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new PhoneNumberInstance($this->version, $payload, $this->solution['phoneNumber']); }
php
public function fetch($options = array()) { $options = new Values($options); $params = Values::of(array( 'CountryCode' => $options['countryCode'], 'Type' => Serialize::map($options['type'], function($e) { return $e; }), 'AddOns' => Serialize::map($options['addOns'], function($e) { return $e; }), )); $params = array_merge($params, Serialize::prefixedCollapsibleMap($options['addOnsData'], 'AddOns')); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new PhoneNumberInstance($this->version, $payload, $this->solution['phoneNumber']); }
[ "public", "function", "fetch", "(", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "params", "=", "Values", "::", "of", "(", "array", "(", "'CountryCode'", "=>", "$", "options", "[", "'countryCode'", "]", ",", "'Type'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'type'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'AddOns'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'addOns'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", ")", ")", ";", "$", "params", "=", "array_merge", "(", "$", "params", ",", "Serialize", "::", "prefixedCollapsibleMap", "(", "$", "options", "[", "'addOnsData'", "]", ",", "'AddOns'", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "fetch", "(", "'GET'", ",", "$", "this", "->", "uri", ",", "$", "params", ")", ";", "return", "new", "PhoneNumberInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'phoneNumber'", "]", ")", ";", "}" ]
Fetch a PhoneNumberInstance @param array|Options $options Optional Arguments @return PhoneNumberInstance Fetched PhoneNumberInstance @throws TwilioException When an HTTP error occurs.
[ "Fetch", "a", "PhoneNumberInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Lookups/V1/PhoneNumberContext.php#L42-L59
twilio/twilio-php
Twilio/Rest/Wireless/V1/CommandInstance.php
CommandInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new CommandContext($this->version, $this->solution['sid']); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new CommandContext($this->version, $this->solution['sid']); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "CommandContext", "(", "$", "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\CommandContext Context for this CommandInstance
[ "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/CommandInstance.php#L71-L77
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Queue/MemberList.php
MemberList.getContext
public function getContext($callSid) { return new MemberContext( $this->version, $this->solution['accountSid'], $this->solution['queueSid'], $callSid ); }
php
public function getContext($callSid) { return new MemberContext( $this->version, $this->solution['accountSid'], $this->solution['queueSid'], $callSid ); }
[ "public", "function", "getContext", "(", "$", "callSid", ")", "{", "return", "new", "MemberContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'queueSid'", "]", ",", "$", "callSid", ")", ";", "}" ]
Constructs a MemberContext @param string $callSid The Call SID of the resource(s) to fetch @return \Twilio\Rest\Api\V2010\Account\Queue\MemberContext
[ "Constructs", "a", "MemberContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Queue/MemberList.php#L126-L133
twilio/twilio-php
Twilio/Rest/Autopilot/V1/Assistant/StyleSheetInstance.php
StyleSheetInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new StyleSheetContext($this->version, $this->solution['assistantSid']); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new StyleSheetContext($this->version, $this->solution['assistantSid']); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "StyleSheetContext", "(", "$", "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\Autopilot\V1\Assistant\StyleSheetContext Context for this StyleSheetInstance
[ "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/StyleSheetInstance.php#L58-L64
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingList.php
IpAccessControlListMappingList.getContext
public function getContext($sid) { return new IpAccessControlListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
php
public function getContext($sid) { return new IpAccessControlListMappingContext( $this->version, $this->solution['accountSid'], $this->solution['domainSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "IpAccessControlListMappingContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'domainSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a IpAccessControlListMappingContext @param string $sid A 34 character string that uniquely identifies the resource to fetch. @return \Twilio\Rest\Api\V2010\Account\Sip\Domain\IpAccessControlListMappingContext
[ "Constructs", "a", "IpAccessControlListMappingContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingList.php#L158-L165
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/ShortCodeInstance.php
ShortCodeInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new ShortCodeContext( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new ShortCodeContext( $this->version, $this->solution['accountSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "ShortCodeContext", "(", "$", "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\ShortCodeContext Context for this ShortCodeInstance
[ "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/ShortCodeInstance.php#L72-L82
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueInstance.php
TaskQueueInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new TaskQueueContext( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new TaskQueueContext( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "TaskQueueContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "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\TaskQueueContext Context for this TaskQueueInstance
[ "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/TaskQueueInstance.php#L83-L93
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getAllTime
protected function getAllTime() { if (!$this->_allTime) { $this->_allTime = new AllTimeList($this->version, $this->solution['accountSid']); } return $this->_allTime; }
php
protected function getAllTime() { if (!$this->_allTime) { $this->_allTime = new AllTimeList($this->version, $this->solution['accountSid']); } return $this->_allTime; }
[ "protected", "function", "getAllTime", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_allTime", ")", "{", "$", "this", "->", "_allTime", "=", "new", "AllTimeList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_allTime", ";", "}" ]
Access the allTime
[ "Access", "the", "allTime" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L161-L167
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getDaily
protected function getDaily() { if (!$this->_daily) { $this->_daily = new DailyList($this->version, $this->solution['accountSid']); } return $this->_daily; }
php
protected function getDaily() { if (!$this->_daily) { $this->_daily = new DailyList($this->version, $this->solution['accountSid']); } return $this->_daily; }
[ "protected", "function", "getDaily", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_daily", ")", "{", "$", "this", "->", "_daily", "=", "new", "DailyList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_daily", ";", "}" ]
Access the daily
[ "Access", "the", "daily" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L172-L178
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getLastMonth
protected function getLastMonth() { if (!$this->_lastMonth) { $this->_lastMonth = new LastMonthList($this->version, $this->solution['accountSid']); } return $this->_lastMonth; }
php
protected function getLastMonth() { if (!$this->_lastMonth) { $this->_lastMonth = new LastMonthList($this->version, $this->solution['accountSid']); } return $this->_lastMonth; }
[ "protected", "function", "getLastMonth", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_lastMonth", ")", "{", "$", "this", "->", "_lastMonth", "=", "new", "LastMonthList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_lastMonth", ";", "}" ]
Access the lastMonth
[ "Access", "the", "lastMonth" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L183-L189
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getMonthly
protected function getMonthly() { if (!$this->_monthly) { $this->_monthly = new MonthlyList($this->version, $this->solution['accountSid']); } return $this->_monthly; }
php
protected function getMonthly() { if (!$this->_monthly) { $this->_monthly = new MonthlyList($this->version, $this->solution['accountSid']); } return $this->_monthly; }
[ "protected", "function", "getMonthly", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_monthly", ")", "{", "$", "this", "->", "_monthly", "=", "new", "MonthlyList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_monthly", ";", "}" ]
Access the monthly
[ "Access", "the", "monthly" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L194-L200
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getThisMonth
protected function getThisMonth() { if (!$this->_thisMonth) { $this->_thisMonth = new ThisMonthList($this->version, $this->solution['accountSid']); } return $this->_thisMonth; }
php
protected function getThisMonth() { if (!$this->_thisMonth) { $this->_thisMonth = new ThisMonthList($this->version, $this->solution['accountSid']); } return $this->_thisMonth; }
[ "protected", "function", "getThisMonth", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_thisMonth", ")", "{", "$", "this", "->", "_thisMonth", "=", "new", "ThisMonthList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_thisMonth", ";", "}" ]
Access the thisMonth
[ "Access", "the", "thisMonth" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L205-L211
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getToday
protected function getToday() { if (!$this->_today) { $this->_today = new TodayList($this->version, $this->solution['accountSid']); } return $this->_today; }
php
protected function getToday() { if (!$this->_today) { $this->_today = new TodayList($this->version, $this->solution['accountSid']); } return $this->_today; }
[ "protected", "function", "getToday", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_today", ")", "{", "$", "this", "->", "_today", "=", "new", "TodayList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_today", ";", "}" ]
Access the today
[ "Access", "the", "today" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L216-L222
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getYearly
protected function getYearly() { if (!$this->_yearly) { $this->_yearly = new YearlyList($this->version, $this->solution['accountSid']); } return $this->_yearly; }
php
protected function getYearly() { if (!$this->_yearly) { $this->_yearly = new YearlyList($this->version, $this->solution['accountSid']); } return $this->_yearly; }
[ "protected", "function", "getYearly", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_yearly", ")", "{", "$", "this", "->", "_yearly", "=", "new", "YearlyList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_yearly", ";", "}" ]
Access the yearly
[ "Access", "the", "yearly" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L227-L233
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Usage/RecordList.php
RecordList.getYesterday
protected function getYesterday() { if (!$this->_yesterday) { $this->_yesterday = new YesterdayList($this->version, $this->solution['accountSid']); } return $this->_yesterday; }
php
protected function getYesterday() { if (!$this->_yesterday) { $this->_yesterday = new YesterdayList($this->version, $this->solution['accountSid']); } return $this->_yesterday; }
[ "protected", "function", "getYesterday", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_yesterday", ")", "{", "$", "this", "->", "_yesterday", "=", "new", "YesterdayList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_yesterday", ";", "}" ]
Access the yesterday
[ "Access", "the", "yesterday" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Usage/RecordList.php#L238-L244
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelInstance.php
TaskChannelInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new TaskChannelContext( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new TaskChannelContext( $this->version, $this->solution['workspaceSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "TaskChannelContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ",", "$", "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\TaskChannelContext Context for this TaskChannelInstance
[ "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/TaskChannelInstance.php#L68-L78
twilio/twilio-php
Twilio/Rest/Preview/BulkExports/ExportContext.php
ExportContext.getDays
protected function getDays() { if (!$this->_days) { $this->_days = new DayList($this->version, $this->solution['resourceType']); } return $this->_days; }
php
protected function getDays() { if (!$this->_days) { $this->_days = new DayList($this->version, $this->solution['resourceType']); } return $this->_days; }
[ "protected", "function", "getDays", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_days", ")", "{", "$", "this", "->", "_days", "=", "new", "DayList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'resourceType'", "]", ")", ";", "}", "return", "$", "this", "->", "_days", ";", "}" ]
Access the days @return \Twilio\Rest\Preview\BulkExports\Export\DayList
[ "Access", "the", "days" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/BulkExports/ExportContext.php#L65-L71
twilio/twilio-php
Twilio/Rest/Chat/V2/Service/Channel/WebhookList.php
WebhookList.create
public function create($type, $options = array()) { $options = new Values($options); $data = Values::of(array( 'Type' => $type, 'Configuration.Url' => $options['configurationUrl'], 'Configuration.Method' => $options['configurationMethod'], 'Configuration.Filters' => Serialize::map($options['configurationFilters'], function($e) { return $e; }), 'Configuration.Triggers' => Serialize::map($options['configurationTriggers'], function($e) { return $e; }), 'Configuration.FlowSid' => $options['configurationFlowSid'], 'Configuration.RetryCount' => $options['configurationRetryCount'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new WebhookInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['channelSid'] ); }
php
public function create($type, $options = array()) { $options = new Values($options); $data = Values::of(array( 'Type' => $type, 'Configuration.Url' => $options['configurationUrl'], 'Configuration.Method' => $options['configurationMethod'], 'Configuration.Filters' => Serialize::map($options['configurationFilters'], function($e) { return $e; }), 'Configuration.Triggers' => Serialize::map($options['configurationTriggers'], function($e) { return $e; }), 'Configuration.FlowSid' => $options['configurationFlowSid'], 'Configuration.RetryCount' => $options['configurationRetryCount'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new WebhookInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['channelSid'] ); }
[ "public", "function", "create", "(", "$", "type", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Type'", "=>", "$", "type", ",", "'Configuration.Url'", "=>", "$", "options", "[", "'configurationUrl'", "]", ",", "'Configuration.Method'", "=>", "$", "options", "[", "'configurationMethod'", "]", ",", "'Configuration.Filters'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'configurationFilters'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'Configuration.Triggers'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'configurationTriggers'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'Configuration.FlowSid'", "=>", "$", "options", "[", "'configurationFlowSid'", "]", ",", "'Configuration.RetryCount'", "=>", "$", "options", "[", "'configurationRetryCount'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "WebhookInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'channelSid'", "]", ")", ";", "}" ]
Create a new WebhookInstance @param string $type The type of webhook @param array|Options $options Optional Arguments @return WebhookInstance Newly created WebhookInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "WebhookInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V2/Service/Channel/WebhookList.php#L132-L158
twilio/twilio-php
Twilio/Rest/Chat/V2/Service/Channel/WebhookList.php
WebhookList.getContext
public function getContext($sid) { return new WebhookContext( $this->version, $this->solution['serviceSid'], $this->solution['channelSid'], $sid ); }
php
public function getContext($sid) { return new WebhookContext( $this->version, $this->solution['serviceSid'], $this->solution['channelSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "WebhookContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'channelSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a WebhookContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Chat\V2\Service\Channel\WebhookContext
[ "Constructs", "a", "WebhookContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V2/Service/Channel/WebhookList.php#L166-L173
twilio/twilio-php
Twilio/Jwt/Grants/IpMessagingGrant.php
IpMessagingGrant.getPayload
public function getPayload() { $payload = array(); if ($this->serviceSid) { $payload['service_sid'] = $this->serviceSid; } if ($this->endpointId) { $payload['endpoint_id'] = $this->endpointId; } if ($this->deploymentRoleSid) { $payload['deployment_role_sid'] = $this->deploymentRoleSid; } if ($this->pushCredentialSid) { $payload['push_credential_sid'] = $this->pushCredentialSid; } return $payload; }
php
public function getPayload() { $payload = array(); if ($this->serviceSid) { $payload['service_sid'] = $this->serviceSid; } if ($this->endpointId) { $payload['endpoint_id'] = $this->endpointId; } if ($this->deploymentRoleSid) { $payload['deployment_role_sid'] = $this->deploymentRoleSid; } if ($this->pushCredentialSid) { $payload['push_credential_sid'] = $this->pushCredentialSid; } return $payload; }
[ "public", "function", "getPayload", "(", ")", "{", "$", "payload", "=", "array", "(", ")", ";", "if", "(", "$", "this", "->", "serviceSid", ")", "{", "$", "payload", "[", "'service_sid'", "]", "=", "$", "this", "->", "serviceSid", ";", "}", "if", "(", "$", "this", "->", "endpointId", ")", "{", "$", "payload", "[", "'endpoint_id'", "]", "=", "$", "this", "->", "endpointId", ";", "}", "if", "(", "$", "this", "->", "deploymentRoleSid", ")", "{", "$", "payload", "[", "'deployment_role_sid'", "]", "=", "$", "this", "->", "deploymentRoleSid", ";", "}", "if", "(", "$", "this", "->", "pushCredentialSid", ")", "{", "$", "payload", "[", "'push_credential_sid'", "]", "=", "$", "this", "->", "pushCredentialSid", ";", "}", "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/IpMessagingGrant.php#L115-L131
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Recording/TranscriptionInstance.php
TranscriptionInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new TranscriptionContext( $this->version, $this->solution['accountSid'], $this->solution['recordingSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new TranscriptionContext( $this->version, $this->solution['accountSid'], $this->solution['recordingSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "TranscriptionContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'recordingSid'", "]", ",", "$", "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\Recording\TranscriptionContext Context for this TranscriptionInstance
[ "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/Recording/TranscriptionInstance.php#L78-L89
twilio/twilio-php
Twilio/Rest/Accounts/V1/Credential/PublicKeyInstance.php
PublicKeyInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new PublicKeyContext($this->version, $this->solution['sid']); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new PublicKeyContext($this->version, $this->solution['sid']); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "PublicKeyContext", "(", "$", "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\Accounts\V1\Credential\PublicKeyContext Context for this PublicKeyInstance
[ "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/Accounts/V1/Credential/PublicKeyInstance.php#L60-L66
twilio/twilio-php
Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionList.php
SyncListPermissionList.getContext
public function getContext($identity) { return new SyncListPermissionContext( $this->version, $this->solution['serviceSid'], $this->solution['listSid'], $identity ); }
php
public function getContext($identity) { return new SyncListPermissionContext( $this->version, $this->solution['serviceSid'], $this->solution['listSid'], $identity ); }
[ "public", "function", "getContext", "(", "$", "identity", ")", "{", "return", "new", "SyncListPermissionContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'listSid'", "]", ",", "$", "identity", ")", ";", "}" ]
Constructs a SyncListPermissionContext @param string $identity Identity of the user to whom the Sync List Permission applies. @return \Twilio\Rest\Preview\Sync\Service\SyncList\SyncListPermissionContext
[ "Constructs", "a", "SyncListPermissionContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionList.php#L131-L138
twilio/twilio-php
Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentInstance.php
DeploymentInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new DeploymentContext( $this->version, $this->solution['fleetSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new DeploymentContext( $this->version, $this->solution['fleetSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "DeploymentContext", "(", "$", "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\DeploymentContext Context for this DeploymentInstance
[ "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/DeploymentInstance.php#L68-L78
twilio/twilio-php
Twilio/Rest/Video/V1/RecordingSettingsInstance.php
RecordingSettingsInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new RecordingSettingsContext($this->version); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new RecordingSettingsContext($this->version); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "RecordingSettingsContext", "(", "$", "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\Video\V1\RecordingSettingsContext Context for this RecordingSettingsInstance
[ "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/RecordingSettingsInstance.php#L63-L69
twilio/twilio-php
Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentList.php
AuthorizationDocumentList.create
public function create($hostedNumberOrderSids, $addressSid, $email, $contactTitle, $contactPhoneNumber, $options = array()) { $options = new Values($options); $data = Values::of(array( 'HostedNumberOrderSids' => Serialize::map($hostedNumberOrderSids, function($e) { return $e; }), 'AddressSid' => $addressSid, 'Email' => $email, 'ContactTitle' => $contactTitle, 'ContactPhoneNumber' => $contactPhoneNumber, 'CcEmails' => Serialize::map($options['ccEmails'], function($e) { return $e; }), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AuthorizationDocumentInstance($this->version, $payload); }
php
public function create($hostedNumberOrderSids, $addressSid, $email, $contactTitle, $contactPhoneNumber, $options = array()) { $options = new Values($options); $data = Values::of(array( 'HostedNumberOrderSids' => Serialize::map($hostedNumberOrderSids, function($e) { return $e; }), 'AddressSid' => $addressSid, 'Email' => $email, 'ContactTitle' => $contactTitle, 'ContactPhoneNumber' => $contactPhoneNumber, 'CcEmails' => Serialize::map($options['ccEmails'], function($e) { return $e; }), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AuthorizationDocumentInstance($this->version, $payload); }
[ "public", "function", "create", "(", "$", "hostedNumberOrderSids", ",", "$", "addressSid", ",", "$", "email", ",", "$", "contactTitle", ",", "$", "contactPhoneNumber", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'HostedNumberOrderSids'", "=>", "Serialize", "::", "map", "(", "$", "hostedNumberOrderSids", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", "'AddressSid'", "=>", "$", "addressSid", ",", "'Email'", "=>", "$", "email", ",", "'ContactTitle'", "=>", "$", "contactTitle", ",", "'ContactPhoneNumber'", "=>", "$", "contactPhoneNumber", ",", "'CcEmails'", "=>", "Serialize", "::", "map", "(", "$", "options", "[", "'ccEmails'", "]", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "AuthorizationDocumentInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ")", ";", "}" ]
Create a new AuthorizationDocumentInstance @param string $hostedNumberOrderSids A list of HostedNumberOrder sids. @param string $addressSid Address sid. @param string $email Email. @param string $contactTitle Title of signee of this Authorization Document. @param string $contactPhoneNumber Authorization Document's signee's phone number. @param array|Options $options Optional Arguments @return AuthorizationDocumentInstance Newly created AuthorizationDocumentInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "AuthorizationDocumentInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentList.php#L145-L165
twilio/twilio-php
Twilio/Rest/Preview/AccSecurity/Service/VerificationList.php
VerificationList.create
public function create($to, $channel, $options = array()) { $options = new Values($options); $data = Values::of(array( 'To' => $to, 'Channel' => $channel, 'CustomMessage' => $options['customMessage'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new VerificationInstance($this->version, $payload, $this->solution['serviceSid']); }
php
public function create($to, $channel, $options = array()) { $options = new Values($options); $data = Values::of(array( 'To' => $to, 'Channel' => $channel, 'CustomMessage' => $options['customMessage'], )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new VerificationInstance($this->version, $payload, $this->solution['serviceSid']); }
[ "public", "function", "create", "(", "$", "to", ",", "$", "channel", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'To'", "=>", "$", "to", ",", "'Channel'", "=>", "$", "channel", ",", "'CustomMessage'", "=>", "$", "options", "[", "'customMessage'", "]", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "VerificationInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ")", ";", "}" ]
Create a new VerificationInstance @param string $to To phonenumber @param string $channel sms or call @param array|Options $options Optional Arguments @return VerificationInstance Newly created VerificationInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "VerificationInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/AccSecurity/Service/VerificationList.php#L46-L63
twilio/twilio-php
Twilio/Rest/Chat/V1/ServiceList.php
ServiceList.create
public function create($friendlyName) { $data = Values::of(array('FriendlyName' => $friendlyName, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new ServiceInstance($this->version, $payload); }
php
public function create($friendlyName) { $data = Values::of(array('FriendlyName' => $friendlyName, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new ServiceInstance($this->version, $payload); }
[ "public", "function", "create", "(", "$", "friendlyName", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'FriendlyName'", "=>", "$", "friendlyName", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "ServiceInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ")", ";", "}" ]
Create a new ServiceInstance @param string $friendlyName Human-readable name for this service instance @return ServiceInstance Newly created ServiceInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "ServiceInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V1/ServiceList.php#L39-L50
twilio/twilio-php
Twilio/Rest/FlexApi/V1/FlexFlowList.php
FlexFlowList.create
public function create($friendlyName, $chatServiceSid, $channelType, $options = array()) { $options = new Values($options); $data = Values::of(array( 'FriendlyName' => $friendlyName, 'ChatServiceSid' => $chatServiceSid, 'ChannelType' => $channelType, 'ContactIdentity' => $options['contactIdentity'], 'Enabled' => Serialize::booleanToString($options['enabled']), 'IntegrationType' => $options['integrationType'], 'Integration.FlowSid' => $options['integrationFlowSid'], 'Integration.Url' => $options['integrationUrl'], 'Integration.WorkspaceSid' => $options['integrationWorkspaceSid'], 'Integration.WorkflowSid' => $options['integrationWorkflowSid'], 'Integration.Channel' => $options['integrationChannel'], 'Integration.Timeout' => $options['integrationTimeout'], 'Integration.Priority' => $options['integrationPriority'], 'Integration.CreationOnMessage' => Serialize::booleanToString($options['integrationCreationOnMessage']), 'LongLived' => Serialize::booleanToString($options['longLived']), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FlexFlowInstance($this->version, $payload); }
php
public function create($friendlyName, $chatServiceSid, $channelType, $options = array()) { $options = new Values($options); $data = Values::of(array( 'FriendlyName' => $friendlyName, 'ChatServiceSid' => $chatServiceSid, 'ChannelType' => $channelType, 'ContactIdentity' => $options['contactIdentity'], 'Enabled' => Serialize::booleanToString($options['enabled']), 'IntegrationType' => $options['integrationType'], 'Integration.FlowSid' => $options['integrationFlowSid'], 'Integration.Url' => $options['integrationUrl'], 'Integration.WorkspaceSid' => $options['integrationWorkspaceSid'], 'Integration.WorkflowSid' => $options['integrationWorkflowSid'], 'Integration.Channel' => $options['integrationChannel'], 'Integration.Timeout' => $options['integrationTimeout'], 'Integration.Priority' => $options['integrationPriority'], 'Integration.CreationOnMessage' => Serialize::booleanToString($options['integrationCreationOnMessage']), 'LongLived' => Serialize::booleanToString($options['longLived']), )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new FlexFlowInstance($this->version, $payload); }
[ "public", "function", "create", "(", "$", "friendlyName", ",", "$", "chatServiceSid", ",", "$", "channelType", ",", "$", "options", "=", "array", "(", ")", ")", "{", "$", "options", "=", "new", "Values", "(", "$", "options", ")", ";", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'FriendlyName'", "=>", "$", "friendlyName", ",", "'ChatServiceSid'", "=>", "$", "chatServiceSid", ",", "'ChannelType'", "=>", "$", "channelType", ",", "'ContactIdentity'", "=>", "$", "options", "[", "'contactIdentity'", "]", ",", "'Enabled'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'enabled'", "]", ")", ",", "'IntegrationType'", "=>", "$", "options", "[", "'integrationType'", "]", ",", "'Integration.FlowSid'", "=>", "$", "options", "[", "'integrationFlowSid'", "]", ",", "'Integration.Url'", "=>", "$", "options", "[", "'integrationUrl'", "]", ",", "'Integration.WorkspaceSid'", "=>", "$", "options", "[", "'integrationWorkspaceSid'", "]", ",", "'Integration.WorkflowSid'", "=>", "$", "options", "[", "'integrationWorkflowSid'", "]", ",", "'Integration.Channel'", "=>", "$", "options", "[", "'integrationChannel'", "]", ",", "'Integration.Timeout'", "=>", "$", "options", "[", "'integrationTimeout'", "]", ",", "'Integration.Priority'", "=>", "$", "options", "[", "'integrationPriority'", "]", ",", "'Integration.CreationOnMessage'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'integrationCreationOnMessage'", "]", ")", ",", "'LongLived'", "=>", "Serialize", "::", "booleanToString", "(", "$", "options", "[", "'longLived'", "]", ")", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "FlexFlowInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ")", ";", "}" ]
Create a new FlexFlowInstance @param string $friendlyName Human readable description of this FlexFlow @param string $chatServiceSid Service Sid. @param string $channelType Channel type @param array|Options $options Optional Arguments @return FlexFlowInstance Newly created FlexFlowInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "FlexFlowInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/FlexApi/V1/FlexFlowList.php#L135-L164
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnList.php
AssignedAddOnList.create
public function create($installedAddOnSid) { $data = Values::of(array('InstalledAddOnSid' => $installedAddOnSid, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AssignedAddOnInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['resourceSid'] ); }
php
public function create($installedAddOnSid) { $data = Values::of(array('InstalledAddOnSid' => $installedAddOnSid, )); $payload = $this->version->create( 'POST', $this->uri, array(), $data ); return new AssignedAddOnInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['resourceSid'] ); }
[ "public", "function", "create", "(", "$", "installedAddOnSid", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'InstalledAddOnSid'", "=>", "$", "installedAddOnSid", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "create", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "AssignedAddOnInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'resourceSid'", "]", ")", ";", "}" ]
Create a new AssignedAddOnInstance @param string $installedAddOnSid The SID that identifies the Add-on installation @return AssignedAddOnInstance Newly created AssignedAddOnInstance @throws TwilioException When an HTTP error occurs.
[ "Create", "a", "new", "AssignedAddOnInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnList.php#L132-L148
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnList.php
AssignedAddOnList.getContext
public function getContext($sid) { return new AssignedAddOnContext( $this->version, $this->solution['accountSid'], $this->solution['resourceSid'], $sid ); }
php
public function getContext($sid) { return new AssignedAddOnContext( $this->version, $this->solution['accountSid'], $this->solution['resourceSid'], $sid ); }
[ "public", "function", "getContext", "(", "$", "sid", ")", "{", "return", "new", "AssignedAddOnContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'resourceSid'", "]", ",", "$", "sid", ")", ";", "}" ]
Constructs a AssignedAddOnContext @param string $sid The unique string that identifies the resource @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumber\AssignedAddOnContext
[ "Constructs", "a", "AssignedAddOnContext" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnList.php#L156-L163
twilio/twilio-php
Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionInstance.php
InstalledAddOnExtensionInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new InstalledAddOnExtensionContext( $this->version, $this->solution['installedAddOnSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new InstalledAddOnExtensionContext( $this->version, $this->solution['installedAddOnSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "InstalledAddOnExtensionContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'installedAddOnSid'", "]", ",", "$", "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\InstalledAddOn\InstalledAddOnExtensionContext Context for this InstalledAddOnExtensionInstance
[ "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/InstalledAddOn/InstalledAddOnExtensionInstance.php#L65-L75
twilio/twilio-php
Twilio/Rest/Autopilot/V1/Assistant/DialogueInstance.php
DialogueInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new DialogueContext( $this->version, $this->solution['assistantSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new DialogueContext( $this->version, $this->solution['assistantSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "DialogueContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'assistantSid'", "]", ",", "$", "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\Autopilot\V1\Assistant\DialogueContext Context for this DialogueInstance
[ "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/DialogueInstance.php#L59-L69
twilio/twilio-php
Twilio/Rest/Preview/Sync/Service/DocumentInstance.php
DocumentInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new DocumentContext( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new DocumentContext( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "DocumentContext", "(", "$", "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\Preview\Sync\Service\DocumentContext Context for this DocumentInstance
[ "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/DocumentInstance.php#L73-L83
twilio/twilio-php
Twilio/Rest/Wireless/V1/SimInstance.php
SimInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new SimContext($this->version, $this->solution['sid']); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new SimContext($this->version, $this->solution['sid']); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "SimContext", "(", "$", "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\SimContext Context for this SimInstance
[ "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/SimInstance.php#L98-L104
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/SipList.php
SipList.getDomains
protected function getDomains() { if (!$this->_domains) { $this->_domains = new DomainList($this->version, $this->solution['accountSid']); } return $this->_domains; }
php
protected function getDomains() { if (!$this->_domains) { $this->_domains = new DomainList($this->version, $this->solution['accountSid']); } return $this->_domains; }
[ "protected", "function", "getDomains", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_domains", ")", "{", "$", "this", "->", "_domains", "=", "new", "DomainList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_domains", ";", "}" ]
Access the domains
[ "Access", "the", "domains" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/SipList.php#L50-L56
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/SipList.php
SipList.getIpAccessControlLists
protected function getIpAccessControlLists() { if (!$this->_ipAccessControlLists) { $this->_ipAccessControlLists = new IpAccessControlListList( $this->version, $this->solution['accountSid'] ); } return $this->_ipAccessControlLists; }
php
protected function getIpAccessControlLists() { if (!$this->_ipAccessControlLists) { $this->_ipAccessControlLists = new IpAccessControlListList( $this->version, $this->solution['accountSid'] ); } return $this->_ipAccessControlLists; }
[ "protected", "function", "getIpAccessControlLists", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_ipAccessControlLists", ")", "{", "$", "this", "->", "_ipAccessControlLists", "=", "new", "IpAccessControlListList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_ipAccessControlLists", ";", "}" ]
Access the ipAccessControlLists
[ "Access", "the", "ipAccessControlLists" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/SipList.php#L61-L70
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/SipList.php
SipList.getCredentialLists
protected function getCredentialLists() { if (!$this->_credentialLists) { $this->_credentialLists = new CredentialListList($this->version, $this->solution['accountSid']); } return $this->_credentialLists; }
php
protected function getCredentialLists() { if (!$this->_credentialLists) { $this->_credentialLists = new CredentialListList($this->version, $this->solution['accountSid']); } return $this->_credentialLists; }
[ "protected", "function", "getCredentialLists", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_credentialLists", ")", "{", "$", "this", "->", "_credentialLists", "=", "new", "CredentialListList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_credentialLists", ";", "}" ]
Access the credentialLists
[ "Access", "the", "credentialLists" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/SipList.php#L75-L81
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Queue/MemberInstance.php
MemberInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new MemberContext( $this->version, $this->solution['accountSid'], $this->solution['queueSid'], $this->solution['callSid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new MemberContext( $this->version, $this->solution['accountSid'], $this->solution['queueSid'], $this->solution['callSid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "MemberContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'queueSid'", "]", ",", "$", "this", "->", "solution", "[", "'callSid'", "]", ")", ";", "}", "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\Queue\MemberContext Context for this MemberInstance
[ "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/Queue/MemberInstance.php#L64-L75
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getActivities
protected function getActivities() { if (!$this->_activities) { $this->_activities = new ActivityList($this->version, $this->solution['sid']); } return $this->_activities; }
php
protected function getActivities() { if (!$this->_activities) { $this->_activities = new ActivityList($this->version, $this->solution['sid']); } return $this->_activities; }
[ "protected", "function", "getActivities", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_activities", ")", "{", "$", "this", "->", "_activities", "=", "new", "ActivityList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_activities", ";", "}" ]
Access the activities @return \Twilio\Rest\Taskrouter\V1\Workspace\ActivityList
[ "Access", "the", "activities" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L142-L148
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getEvents
protected function getEvents() { if (!$this->_events) { $this->_events = new EventList($this->version, $this->solution['sid']); } return $this->_events; }
php
protected function getEvents() { if (!$this->_events) { $this->_events = new EventList($this->version, $this->solution['sid']); } return $this->_events; }
[ "protected", "function", "getEvents", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_events", ")", "{", "$", "this", "->", "_events", "=", "new", "EventList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_events", ";", "}" ]
Access the events @return \Twilio\Rest\Taskrouter\V1\Workspace\EventList
[ "Access", "the", "events" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L155-L161
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getTasks
protected function getTasks() { if (!$this->_tasks) { $this->_tasks = new TaskList($this->version, $this->solution['sid']); } return $this->_tasks; }
php
protected function getTasks() { if (!$this->_tasks) { $this->_tasks = new TaskList($this->version, $this->solution['sid']); } return $this->_tasks; }
[ "protected", "function", "getTasks", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_tasks", ")", "{", "$", "this", "->", "_tasks", "=", "new", "TaskList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_tasks", ";", "}" ]
Access the tasks @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskList
[ "Access", "the", "tasks" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L168-L174
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getTaskQueues
protected function getTaskQueues() { if (!$this->_taskQueues) { $this->_taskQueues = new TaskQueueList($this->version, $this->solution['sid']); } return $this->_taskQueues; }
php
protected function getTaskQueues() { if (!$this->_taskQueues) { $this->_taskQueues = new TaskQueueList($this->version, $this->solution['sid']); } return $this->_taskQueues; }
[ "protected", "function", "getTaskQueues", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_taskQueues", ")", "{", "$", "this", "->", "_taskQueues", "=", "new", "TaskQueueList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_taskQueues", ";", "}" ]
Access the taskQueues @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskQueueList
[ "Access", "the", "taskQueues" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L181-L187
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getWorkers
protected function getWorkers() { if (!$this->_workers) { $this->_workers = new WorkerList($this->version, $this->solution['sid']); } return $this->_workers; }
php
protected function getWorkers() { if (!$this->_workers) { $this->_workers = new WorkerList($this->version, $this->solution['sid']); } return $this->_workers; }
[ "protected", "function", "getWorkers", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_workers", ")", "{", "$", "this", "->", "_workers", "=", "new", "WorkerList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_workers", ";", "}" ]
Access the workers @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkerList
[ "Access", "the", "workers" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L194-L200
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getWorkflows
protected function getWorkflows() { if (!$this->_workflows) { $this->_workflows = new WorkflowList($this->version, $this->solution['sid']); } return $this->_workflows; }
php
protected function getWorkflows() { if (!$this->_workflows) { $this->_workflows = new WorkflowList($this->version, $this->solution['sid']); } return $this->_workflows; }
[ "protected", "function", "getWorkflows", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_workflows", ")", "{", "$", "this", "->", "_workflows", "=", "new", "WorkflowList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_workflows", ";", "}" ]
Access the workflows @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkflowList
[ "Access", "the", "workflows" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L207-L213
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getStatistics
protected function getStatistics() { if (!$this->_statistics) { $this->_statistics = new WorkspaceStatisticsList($this->version, $this->solution['sid']); } return $this->_statistics; }
php
protected function getStatistics() { if (!$this->_statistics) { $this->_statistics = new WorkspaceStatisticsList($this->version, $this->solution['sid']); } return $this->_statistics; }
[ "protected", "function", "getStatistics", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_statistics", ")", "{", "$", "this", "->", "_statistics", "=", "new", "WorkspaceStatisticsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_statistics", ";", "}" ]
Access the statistics @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceStatisticsList
[ "Access", "the", "statistics" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L220-L226
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getRealTimeStatistics
protected function getRealTimeStatistics() { if (!$this->_realTimeStatistics) { $this->_realTimeStatistics = new WorkspaceRealTimeStatisticsList( $this->version, $this->solution['sid'] ); } return $this->_realTimeStatistics; }
php
protected function getRealTimeStatistics() { if (!$this->_realTimeStatistics) { $this->_realTimeStatistics = new WorkspaceRealTimeStatisticsList( $this->version, $this->solution['sid'] ); } return $this->_realTimeStatistics; }
[ "protected", "function", "getRealTimeStatistics", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_realTimeStatistics", ")", "{", "$", "this", "->", "_realTimeStatistics", "=", "new", "WorkspaceRealTimeStatisticsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_realTimeStatistics", ";", "}" ]
Access the realTimeStatistics @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceRealTimeStatisticsList
[ "Access", "the", "realTimeStatistics" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L233-L242
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getCumulativeStatistics
protected function getCumulativeStatistics() { if (!$this->_cumulativeStatistics) { $this->_cumulativeStatistics = new WorkspaceCumulativeStatisticsList( $this->version, $this->solution['sid'] ); } return $this->_cumulativeStatistics; }
php
protected function getCumulativeStatistics() { if (!$this->_cumulativeStatistics) { $this->_cumulativeStatistics = new WorkspaceCumulativeStatisticsList( $this->version, $this->solution['sid'] ); } return $this->_cumulativeStatistics; }
[ "protected", "function", "getCumulativeStatistics", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_cumulativeStatistics", ")", "{", "$", "this", "->", "_cumulativeStatistics", "=", "new", "WorkspaceCumulativeStatisticsList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_cumulativeStatistics", ";", "}" ]
Access the cumulativeStatistics @return \Twilio\Rest\Taskrouter\V1\Workspace\WorkspaceCumulativeStatisticsList
[ "Access", "the", "cumulativeStatistics" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L249-L258
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/WorkspaceContext.php
WorkspaceContext.getTaskChannels
protected function getTaskChannels() { if (!$this->_taskChannels) { $this->_taskChannels = new TaskChannelList($this->version, $this->solution['sid']); } return $this->_taskChannels; }
php
protected function getTaskChannels() { if (!$this->_taskChannels) { $this->_taskChannels = new TaskChannelList($this->version, $this->solution['sid']); } return $this->_taskChannels; }
[ "protected", "function", "getTaskChannels", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_taskChannels", ")", "{", "$", "this", "->", "_taskChannels", "=", "new", "TaskChannelList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_taskChannels", ";", "}" ]
Access the taskChannels @return \Twilio\Rest\Taskrouter\V1\Workspace\TaskChannelList
[ "Access", "the", "taskChannels" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/WorkspaceContext.php#L265-L271
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/UsageList.php
UsageList.getRecords
protected function getRecords() { if (!$this->_records) { $this->_records = new RecordList($this->version, $this->solution['accountSid']); } return $this->_records; }
php
protected function getRecords() { if (!$this->_records) { $this->_records = new RecordList($this->version, $this->solution['accountSid']); } return $this->_records; }
[ "protected", "function", "getRecords", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_records", ")", "{", "$", "this", "->", "_records", "=", "new", "RecordList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_records", ";", "}" ]
Access the records
[ "Access", "the", "records" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/UsageList.php#L45-L51
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/UsageList.php
UsageList.getTriggers
protected function getTriggers() { if (!$this->_triggers) { $this->_triggers = new TriggerList($this->version, $this->solution['accountSid']); } return $this->_triggers; }
php
protected function getTriggers() { if (!$this->_triggers) { $this->_triggers = new TriggerList($this->version, $this->solution['accountSid']); } return $this->_triggers; }
[ "protected", "function", "getTriggers", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_triggers", ")", "{", "$", "this", "->", "_triggers", "=", "new", "TriggerList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ")", ";", "}", "return", "$", "this", "->", "_triggers", ";", "}" ]
Access the triggers
[ "Access", "the", "triggers" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/UsageList.php#L56-L62
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsInstance.php
TaskQueueStatisticsInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new TaskQueueStatisticsContext( $this->version, $this->solution['workspaceSid'], $this->solution['taskQueueSid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new TaskQueueStatisticsContext( $this->version, $this->solution['workspaceSid'], $this->solution['taskQueueSid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "TaskQueueStatisticsContext", "(", "$", "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\TaskQueueStatisticsContext Context for this TaskQueueStatisticsInstance
[ "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/TaskQueueStatisticsInstance.php#L59-L69
twilio/twilio-php
Twilio/Rest/Preview/Marketplace/InstalledAddOnInstance.php
InstalledAddOnInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new InstalledAddOnContext($this->version, $this->solution['sid']); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new InstalledAddOnContext($this->version, $this->solution['sid']); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "InstalledAddOnContext", "(", "$", "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\Preview\Marketplace\InstalledAddOnContext Context for this InstalledAddOnInstance
[ "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/InstalledAddOnInstance.php#L72-L78
twilio/twilio-php
Twilio/Rest/Chat/V1/Service/RoleContext.php
RoleContext.update
public function update($permission) { $data = Values::of(array('Permission' => Serialize::map($permission, function($e) { return $e; }), )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new RoleInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['sid'] ); }
php
public function update($permission) { $data = Values::of(array('Permission' => Serialize::map($permission, function($e) { return $e; }), )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new RoleInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['sid'] ); }
[ "public", "function", "update", "(", "$", "permission", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Permission'", "=>", "Serialize", "::", "map", "(", "$", "permission", ",", "function", "(", "$", "e", ")", "{", "return", "$", "e", ";", "}", ")", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "update", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "RoleInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'serviceSid'", "]", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}" ]
Update the RoleInstance @param string $permission A permission this role should have. @return RoleInstance Updated RoleInstance @throws TwilioException When an HTTP error occurs.
[ "Update", "the", "RoleInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V1/Service/RoleContext.php#L75-L91
twilio/twilio-php
Twilio/Rest/Video/V1/CompositionInstance.php
CompositionInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new CompositionContext($this->version, $this->solution['sid']); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new CompositionContext($this->version, $this->solution['sid']); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "CompositionContext", "(", "$", "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\CompositionContext Context for this CompositionInstance
[ "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/CompositionInstance.php#L85-L91
twilio/twilio-php
Twilio/Rest/Video/V1/RoomContext.php
RoomContext.update
public function update($status) { $data = Values::of(array('Status' => $status, )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new RoomInstance($this->version, $payload, $this->solution['sid']); }
php
public function update($status) { $data = Values::of(array('Status' => $status, )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new RoomInstance($this->version, $payload, $this->solution['sid']); }
[ "public", "function", "update", "(", "$", "status", ")", "{", "$", "data", "=", "Values", "::", "of", "(", "array", "(", "'Status'", "=>", "$", "status", ",", ")", ")", ";", "$", "payload", "=", "$", "this", "->", "version", "->", "update", "(", "'POST'", ",", "$", "this", "->", "uri", ",", "array", "(", ")", ",", "$", "data", ")", ";", "return", "new", "RoomInstance", "(", "$", "this", "->", "version", ",", "$", "payload", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}" ]
Update the RoomInstance @param string $status Set to completed to end the Room. @return RoomInstance Updated RoomInstance @throws TwilioException When an HTTP error occurs.
[ "Update", "the", "RoomInstance" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Video/V1/RoomContext.php#L71-L82
twilio/twilio-php
Twilio/Rest/Video/V1/RoomContext.php
RoomContext.getRecordings
protected function getRecordings() { if (!$this->_recordings) { $this->_recordings = new RoomRecordingList($this->version, $this->solution['sid']); } return $this->_recordings; }
php
protected function getRecordings() { if (!$this->_recordings) { $this->_recordings = new RoomRecordingList($this->version, $this->solution['sid']); } return $this->_recordings; }
[ "protected", "function", "getRecordings", "(", ")", "{", "if", "(", "!", "$", "this", "->", "_recordings", ")", "{", "$", "this", "->", "_recordings", "=", "new", "RoomRecordingList", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'sid'", "]", ")", ";", "}", "return", "$", "this", "->", "_recordings", ";", "}" ]
Access the recordings @return \Twilio\Rest\Video\V1\Room\RoomRecordingList
[ "Access", "the", "recordings" ]
train
https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Video/V1/RoomContext.php#L89-L95
twilio/twilio-php
Twilio/Rest/Api/V2010/Account/Call/NotificationInstance.php
NotificationInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new NotificationContext( $this->version, $this->solution['accountSid'], $this->solution['callSid'], $this->solution['sid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new NotificationContext( $this->version, $this->solution['accountSid'], $this->solution['callSid'], $this->solution['sid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "NotificationContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'accountSid'", "]", ",", "$", "this", "->", "solution", "[", "'callSid'", "]", ",", "$", "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\Call\NotificationContext Context for this NotificationInstance
[ "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/Call/NotificationInstance.php#L87-L98
twilio/twilio-php
Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsInstance.php
WorkspaceCumulativeStatisticsInstance.proxy
protected function proxy() { if (!$this->context) { $this->context = new WorkspaceCumulativeStatisticsContext( $this->version, $this->solution['workspaceSid'] ); } return $this->context; }
php
protected function proxy() { if (!$this->context) { $this->context = new WorkspaceCumulativeStatisticsContext( $this->version, $this->solution['workspaceSid'] ); } return $this->context; }
[ "protected", "function", "proxy", "(", ")", "{", "if", "(", "!", "$", "this", "->", "context", ")", "{", "$", "this", "->", "context", "=", "new", "WorkspaceCumulativeStatisticsContext", "(", "$", "this", "->", "version", ",", "$", "this", "->", "solution", "[", "'workspaceSid'", "]", ")", ";", "}", "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\WorkspaceCumulativeStatisticsContext Context for this WorkspaceCumulativeStatisticsInstance
[ "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/WorkspaceCumulativeStatisticsInstance.php#L89-L98