repository_name
stringlengths 5
67
| func_path_in_repository
stringlengths 4
234
| func_name
stringlengths 0
314
| whole_func_string
stringlengths 52
3.87M
| language
stringclasses 6
values | func_code_string
stringlengths 39
1.84M
| func_code_tokens
sequencelengths 15
672k
| func_documentation_string
stringlengths 1
47.2k
| func_documentation_tokens
sequencelengths 1
3.92k
| split_name
stringclasses 1
value | func_code_url
stringlengths 85
339
|
---|---|---|---|---|---|---|---|---|---|---|
twilio/twilio-php | Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateInstance.php | CertificateInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new CertificateContext(
$this->version,
$this->solution['fleetSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new CertificateContext(
$this->version,
$this->solution['fleetSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"CertificateContext",
"(",
"$",
"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\CertificateContext Context for this CertificateInstance | [
"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/CertificateInstance.php#L67-L77 |
twilio/twilio-php | Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentInstance.php | AuthorizationDocumentInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new AuthorizationDocumentContext($this->version, $this->solution['sid']);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new AuthorizationDocumentContext($this->version, $this->solution['sid']);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"AuthorizationDocumentContext",
"(",
"$",
"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\HostedNumbers\AuthorizationDocumentContext Context for this AuthorizationDocumentInstance | [
"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/HostedNumbers/AuthorizationDocumentInstance.php#L68-L74 |
twilio/twilio-php | Twilio/Rest/Autopilot/V1/Assistant/FieldTypeList.php | FieldTypeList.create | public function create($uniqueName, $options = array()) {
$options = new Values($options);
$data = Values::of(array('UniqueName' => $uniqueName, 'FriendlyName' => $options['friendlyName'], ));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new FieldTypeInstance($this->version, $payload, $this->solution['assistantSid']);
} | php | public function create($uniqueName, $options = array()) {
$options = new Values($options);
$data = Values::of(array('UniqueName' => $uniqueName, 'FriendlyName' => $options['friendlyName'], ));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new FieldTypeInstance($this->version, $payload, $this->solution['assistantSid']);
} | [
"public",
"function",
"create",
"(",
"$",
"uniqueName",
",",
"$",
"options",
"=",
"array",
"(",
")",
")",
"{",
"$",
"options",
"=",
"new",
"Values",
"(",
"$",
"options",
")",
";",
"$",
"data",
"=",
"Values",
"::",
"of",
"(",
"array",
"(",
"'UniqueName'",
"=>",
"$",
"uniqueName",
",",
"'FriendlyName'",
"=>",
"$",
"options",
"[",
"'friendlyName'",
"]",
",",
")",
")",
";",
"$",
"payload",
"=",
"$",
"this",
"->",
"version",
"->",
"create",
"(",
"'POST'",
",",
"$",
"this",
"->",
"uri",
",",
"array",
"(",
")",
",",
"$",
"data",
")",
";",
"return",
"new",
"FieldTypeInstance",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"payload",
",",
"$",
"this",
"->",
"solution",
"[",
"'assistantSid'",
"]",
")",
";",
"}"
] | Create a new FieldTypeInstance
@param string $uniqueName An application-defined string that uniquely
identifies the new resource
@param array|Options $options Optional Arguments
@return FieldTypeInstance Newly created FieldTypeInstance
@throws TwilioException When an HTTP error occurs. | [
"Create",
"a",
"new",
"FieldTypeInstance"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeList.php#L133-L146 |
twilio/twilio-php | Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionList.php | DocumentPermissionList.getContext | public function getContext($identity) {
return new DocumentPermissionContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['documentSid'],
$identity
);
} | php | public function getContext($identity) {
return new DocumentPermissionContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['documentSid'],
$identity
);
} | [
"public",
"function",
"getContext",
"(",
"$",
"identity",
")",
"{",
"return",
"new",
"DocumentPermissionContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'documentSid'",
"]",
",",
"$",
"identity",
")",
";",
"}"
] | Constructs a DocumentPermissionContext
@param string $identity Identity of the user to whom the Sync Document
Permission applies.
@return \Twilio\Rest\Preview\Sync\Service\Document\DocumentPermissionContext | [
"Constructs",
"a",
"DocumentPermissionContext"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionList.php#L131-L138 |
twilio/twilio-php | Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionContext.php | InstalledAddOnExtensionContext.update | public function update($enabled) {
$data = Values::of(array('Enabled' => Serialize::booleanToString($enabled), ));
$payload = $this->version->update(
'POST',
$this->uri,
array(),
$data
);
return new InstalledAddOnExtensionInstance(
$this->version,
$payload,
$this->solution['installedAddOnSid'],
$this->solution['sid']
);
} | php | public function update($enabled) {
$data = Values::of(array('Enabled' => Serialize::booleanToString($enabled), ));
$payload = $this->version->update(
'POST',
$this->uri,
array(),
$data
);
return new InstalledAddOnExtensionInstance(
$this->version,
$payload,
$this->solution['installedAddOnSid'],
$this->solution['sid']
);
} | [
"public",
"function",
"update",
"(",
"$",
"enabled",
")",
"{",
"$",
"data",
"=",
"Values",
"::",
"of",
"(",
"array",
"(",
"'Enabled'",
"=>",
"Serialize",
"::",
"booleanToString",
"(",
"$",
"enabled",
")",
",",
")",
")",
";",
"$",
"payload",
"=",
"$",
"this",
"->",
"version",
"->",
"update",
"(",
"'POST'",
",",
"$",
"this",
"->",
"uri",
",",
"array",
"(",
")",
",",
"$",
"data",
")",
";",
"return",
"new",
"InstalledAddOnExtensionInstance",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"payload",
",",
"$",
"this",
"->",
"solution",
"[",
"'installedAddOnSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}"
] | Update the InstalledAddOnExtensionInstance
@param boolean $enabled A Boolean indicating if the Extension will be invoked
@return InstalledAddOnExtensionInstance Updated
InstalledAddOnExtensionInstance
@throws TwilioException When an HTTP error occurs. | [
"Update",
"the",
"InstalledAddOnExtensionInstance"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionContext.php#L70-L86 |
twilio/twilio-php | Twilio/Rest/Serverless/V1/ServiceContext.php | ServiceContext.getEnvironments | protected function getEnvironments() {
if (!$this->_environments) {
$this->_environments = new EnvironmentList($this->version, $this->solution['sid']);
}
return $this->_environments;
} | php | protected function getEnvironments() {
if (!$this->_environments) {
$this->_environments = new EnvironmentList($this->version, $this->solution['sid']);
}
return $this->_environments;
} | [
"protected",
"function",
"getEnvironments",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_environments",
")",
"{",
"$",
"this",
"->",
"_environments",
"=",
"new",
"EnvironmentList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_environments",
";",
"}"
] | Access the environments
@return \Twilio\Rest\Serverless\V1\Service\EnvironmentList | [
"Access",
"the",
"environments"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/ServiceContext.php#L105-L111 |
twilio/twilio-php | Twilio/Rest/Serverless/V1/ServiceContext.php | ServiceContext.getFunctions | protected function getFunctions() {
if (!$this->_functions) {
$this->_functions = new FunctionList($this->version, $this->solution['sid']);
}
return $this->_functions;
} | php | protected function getFunctions() {
if (!$this->_functions) {
$this->_functions = new FunctionList($this->version, $this->solution['sid']);
}
return $this->_functions;
} | [
"protected",
"function",
"getFunctions",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_functions",
")",
"{",
"$",
"this",
"->",
"_functions",
"=",
"new",
"FunctionList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_functions",
";",
"}"
] | Access the functions
@return \Twilio\Rest\Serverless\V1\Service\FunctionList | [
"Access",
"the",
"functions"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/ServiceContext.php#L118-L124 |
twilio/twilio-php | Twilio/Rest/Serverless/V1/ServiceContext.php | ServiceContext.getAssets | protected function getAssets() {
if (!$this->_assets) {
$this->_assets = new AssetList($this->version, $this->solution['sid']);
}
return $this->_assets;
} | php | protected function getAssets() {
if (!$this->_assets) {
$this->_assets = new AssetList($this->version, $this->solution['sid']);
}
return $this->_assets;
} | [
"protected",
"function",
"getAssets",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_assets",
")",
"{",
"$",
"this",
"->",
"_assets",
"=",
"new",
"AssetList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_assets",
";",
"}"
] | Access the assets
@return \Twilio\Rest\Serverless\V1\Service\AssetList | [
"Access",
"the",
"assets"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/ServiceContext.php#L131-L137 |
twilio/twilio-php | Twilio/Rest/Serverless/V1/ServiceContext.php | ServiceContext.getBuilds | protected function getBuilds() {
if (!$this->_builds) {
$this->_builds = new BuildList($this->version, $this->solution['sid']);
}
return $this->_builds;
} | php | protected function getBuilds() {
if (!$this->_builds) {
$this->_builds = new BuildList($this->version, $this->solution['sid']);
}
return $this->_builds;
} | [
"protected",
"function",
"getBuilds",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_builds",
")",
"{",
"$",
"this",
"->",
"_builds",
"=",
"new",
"BuildList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_builds",
";",
"}"
] | Access the builds
@return \Twilio\Rest\Serverless\V1\Service\BuildList | [
"Access",
"the",
"builds"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/ServiceContext.php#L144-L150 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/OutgoingCallerIdInstance.php | OutgoingCallerIdInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new OutgoingCallerIdContext(
$this->version,
$this->solution['accountSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new OutgoingCallerIdContext(
$this->version,
$this->solution['accountSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"OutgoingCallerIdContext",
"(",
"$",
"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\OutgoingCallerIdContext Context for
this
OutgoingCallerIdInstance | [
"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/OutgoingCallerIdInstance.php#L63-L73 |
twilio/twilio-php | Twilio/Rest/Autopilot/V1/Assistant/Task/SampleList.php | SampleList.create | public function create($language, $taggedText, $options = array()) {
$options = new Values($options);
$data = Values::of(array(
'Language' => $language,
'TaggedText' => $taggedText,
'SourceChannel' => $options['sourceChannel'],
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new SampleInstance(
$this->version,
$payload,
$this->solution['assistantSid'],
$this->solution['taskSid']
);
} | php | public function create($language, $taggedText, $options = array()) {
$options = new Values($options);
$data = Values::of(array(
'Language' => $language,
'TaggedText' => $taggedText,
'SourceChannel' => $options['sourceChannel'],
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new SampleInstance(
$this->version,
$payload,
$this->solution['assistantSid'],
$this->solution['taskSid']
);
} | [
"public",
"function",
"create",
"(",
"$",
"language",
",",
"$",
"taggedText",
",",
"$",
"options",
"=",
"array",
"(",
")",
")",
"{",
"$",
"options",
"=",
"new",
"Values",
"(",
"$",
"options",
")",
";",
"$",
"data",
"=",
"Values",
"::",
"of",
"(",
"array",
"(",
"'Language'",
"=>",
"$",
"language",
",",
"'TaggedText'",
"=>",
"$",
"taggedText",
",",
"'SourceChannel'",
"=>",
"$",
"options",
"[",
"'sourceChannel'",
"]",
",",
")",
")",
";",
"$",
"payload",
"=",
"$",
"this",
"->",
"version",
"->",
"create",
"(",
"'POST'",
",",
"$",
"this",
"->",
"uri",
",",
"array",
"(",
")",
",",
"$",
"data",
")",
";",
"return",
"new",
"SampleInstance",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"payload",
",",
"$",
"this",
"->",
"solution",
"[",
"'assistantSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'taskSid'",
"]",
")",
";",
"}"
] | Create a new SampleInstance
@param string $language The ISO language-country string that specifies the
language used for the new sample
@param string $taggedText The text example of how end users might express
the task
@param array|Options $options Optional Arguments
@return SampleInstance Newly created SampleInstance
@throws TwilioException When an HTTP error occurs. | [
"Create",
"a",
"new",
"SampleInstance"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleList.php#L141-L163 |
twilio/twilio-php | Twilio/Rest/Autopilot/V1/Assistant/Task/SampleList.php | SampleList.getContext | public function getContext($sid) {
return new SampleContext(
$this->version,
$this->solution['assistantSid'],
$this->solution['taskSid'],
$sid
);
} | php | public function getContext($sid) {
return new SampleContext(
$this->version,
$this->solution['assistantSid'],
$this->solution['taskSid'],
$sid
);
} | [
"public",
"function",
"getContext",
"(",
"$",
"sid",
")",
"{",
"return",
"new",
"SampleContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'assistantSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'taskSid'",
"]",
",",
"$",
"sid",
")",
";",
"}"
] | Constructs a SampleContext
@param string $sid The unique string that identifies the resource
@return \Twilio\Rest\Autopilot\V1\Assistant\Task\SampleContext | [
"Constructs",
"a",
"SampleContext"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleList.php#L171-L178 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingInstance.php | CredentialListMappingInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new CredentialListMappingContext(
$this->version,
$this->solution['accountSid'],
$this->solution['domainSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new CredentialListMappingContext(
$this->version,
$this->solution['accountSid'],
$this->solution['domainSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"CredentialListMappingContext",
"(",
"$",
"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\CredentialListMappingContext Context for this
CredentialListMappingInstance | [
"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/CredentialListMappingInstance.php#L67-L78 |
twilio/twilio-php | Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionInstance.php | MessageInteractionInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new MessageInteractionContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['sessionSid'],
$this->solution['participantSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new MessageInteractionContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['sessionSid'],
$this->solution['participantSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"MessageInteractionContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sessionSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'participantSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"context",
";",
"}"
] | Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context
@return \Twilio\Rest\Proxy\V1\Service\Session\Participant\MessageInteractionContext Context for this
MessageInteractionInstance | [
"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/Proxy/V1/Service/Session/Participant/MessageInteractionInstance.php#L96-L108 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Usage/TriggerInstance.php | TriggerInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new TriggerContext(
$this->version,
$this->solution['accountSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new TriggerContext(
$this->version,
$this->solution['accountSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"TriggerContext",
"(",
"$",
"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\Usage\TriggerContext Context for this
TriggerInstance | [
"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/Usage/TriggerInstance.php#L81-L91 |
twilio/twilio-php | Twilio/Rest/Sync/V1/Service/SyncStreamContext.php | SyncStreamContext.getStreamMessages | protected function getStreamMessages() {
if (!$this->_streamMessages) {
$this->_streamMessages = new StreamMessageList(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->_streamMessages;
} | php | protected function getStreamMessages() {
if (!$this->_streamMessages) {
$this->_streamMessages = new StreamMessageList(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->_streamMessages;
} | [
"protected",
"function",
"getStreamMessages",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_streamMessages",
")",
"{",
"$",
"this",
"->",
"_streamMessages",
"=",
"new",
"StreamMessageList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_streamMessages",
";",
"}"
] | Access the streamMessages
@return \Twilio\Rest\Sync\V1\Service\SyncStream\StreamMessageList | [
"Access",
"the",
"streamMessages"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Sync/V1/Service/SyncStreamContext.php#L109-L119 |
twilio/twilio-php | Twilio/Rest/Authy/V1/FormInstance.php | FormInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new FormContext($this->version, $this->solution['formType']);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new FormContext($this->version, $this->solution['formType']);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"FormContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'formType'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"context",
";",
"}"
] | Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context
@return \Twilio\Rest\Authy\V1\FormContext Context for this FormInstance | [
"Generate",
"an",
"instance",
"context",
"for",
"the",
"instance",
"the",
"context",
"is",
"capable",
"of",
"performing",
"various",
"actions",
".",
"All",
"instance",
"actions",
"are",
"proxied",
"to",
"the",
"context"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Authy/V1/FormInstance.php#L54-L60 |
twilio/twilio-php | Twilio/Rest/Pricing/V1/Messaging/CountryInstance.php | CountryInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new CountryContext($this->version, $this->solution['isoCountry']);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new CountryContext($this->version, $this->solution['isoCountry']);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"CountryContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'isoCountry'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"context",
";",
"}"
] | Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context
@return \Twilio\Rest\Pricing\V1\Messaging\CountryContext Context for this
CountryInstance | [
"Generate",
"an",
"instance",
"context",
"for",
"the",
"instance",
"the",
"context",
"is",
"capable",
"of",
"performing",
"various",
"actions",
".",
"All",
"instance",
"actions",
"are",
"proxied",
"to",
"the",
"context"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Pricing/V1/Messaging/CountryInstance.php#L57-L63 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Sip/DomainInstance.php | DomainInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new DomainContext(
$this->version,
$this->solution['accountSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new DomainContext(
$this->version,
$this->solution['accountSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"DomainContext",
"(",
"$",
"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\Sip\DomainContext Context for this
DomainInstance | [
"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/DomainInstance.php#L87-L97 |
twilio/twilio-php | Twilio/Rest/Video/V1/CompositionHookList.php | CompositionHookList.create | public function create($friendlyName, $options = array()) {
$options = new Values($options);
$data = Values::of(array(
'FriendlyName' => $friendlyName,
'Enabled' => Serialize::booleanToString($options['enabled']),
'VideoLayout' => Serialize::jsonObject($options['videoLayout']),
'AudioSources' => Serialize::map($options['audioSources'], function($e) { return $e; }),
'AudioSourcesExcluded' => Serialize::map($options['audioSourcesExcluded'], function($e) { return $e; }),
'Resolution' => $options['resolution'],
'Format' => $options['format'],
'StatusCallback' => $options['statusCallback'],
'StatusCallbackMethod' => $options['statusCallbackMethod'],
'Trim' => Serialize::booleanToString($options['trim']),
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new CompositionHookInstance($this->version, $payload);
} | php | public function create($friendlyName, $options = array()) {
$options = new Values($options);
$data = Values::of(array(
'FriendlyName' => $friendlyName,
'Enabled' => Serialize::booleanToString($options['enabled']),
'VideoLayout' => Serialize::jsonObject($options['videoLayout']),
'AudioSources' => Serialize::map($options['audioSources'], function($e) { return $e; }),
'AudioSourcesExcluded' => Serialize::map($options['audioSourcesExcluded'], function($e) { return $e; }),
'Resolution' => $options['resolution'],
'Format' => $options['format'],
'StatusCallback' => $options['statusCallback'],
'StatusCallbackMethod' => $options['statusCallbackMethod'],
'Trim' => Serialize::booleanToString($options['trim']),
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new CompositionHookInstance($this->version, $payload);
} | [
"public",
"function",
"create",
"(",
"$",
"friendlyName",
",",
"$",
"options",
"=",
"array",
"(",
")",
")",
"{",
"$",
"options",
"=",
"new",
"Values",
"(",
"$",
"options",
")",
";",
"$",
"data",
"=",
"Values",
"::",
"of",
"(",
"array",
"(",
"'FriendlyName'",
"=>",
"$",
"friendlyName",
",",
"'Enabled'",
"=>",
"Serialize",
"::",
"booleanToString",
"(",
"$",
"options",
"[",
"'enabled'",
"]",
")",
",",
"'VideoLayout'",
"=>",
"Serialize",
"::",
"jsonObject",
"(",
"$",
"options",
"[",
"'videoLayout'",
"]",
")",
",",
"'AudioSources'",
"=>",
"Serialize",
"::",
"map",
"(",
"$",
"options",
"[",
"'audioSources'",
"]",
",",
"function",
"(",
"$",
"e",
")",
"{",
"return",
"$",
"e",
";",
"}",
")",
",",
"'AudioSourcesExcluded'",
"=>",
"Serialize",
"::",
"map",
"(",
"$",
"options",
"[",
"'audioSourcesExcluded'",
"]",
",",
"function",
"(",
"$",
"e",
")",
"{",
"return",
"$",
"e",
";",
"}",
")",
",",
"'Resolution'",
"=>",
"$",
"options",
"[",
"'resolution'",
"]",
",",
"'Format'",
"=>",
"$",
"options",
"[",
"'format'",
"]",
",",
"'StatusCallback'",
"=>",
"$",
"options",
"[",
"'statusCallback'",
"]",
",",
"'StatusCallbackMethod'",
"=>",
"$",
"options",
"[",
"'statusCallbackMethod'",
"]",
",",
"'Trim'",
"=>",
"Serialize",
"::",
"booleanToString",
"(",
"$",
"options",
"[",
"'trim'",
"]",
")",
",",
")",
")",
";",
"$",
"payload",
"=",
"$",
"this",
"->",
"version",
"->",
"create",
"(",
"'POST'",
",",
"$",
"this",
"->",
"uri",
",",
"array",
"(",
")",
",",
"$",
"data",
")",
";",
"return",
"new",
"CompositionHookInstance",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"payload",
")",
";",
"}"
] | Create a new CompositionHookInstance
@param string $friendlyName Friendly name of the Composition Hook to be
shown in the console.
@param array|Options $options Optional Arguments
@return CompositionHookInstance Newly created CompositionHookInstance
@throws TwilioException When an HTTP error occurs. | [
"Create",
"a",
"new",
"CompositionHookInstance"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Video/V1/CompositionHookList.php#L140-L164 |
twilio/twilio-php | Twilio/Rest/Proxy/V1/ServiceList.php | ServiceList.create | public function create($uniqueName, $options = array()) {
$options = new Values($options);
$data = Values::of(array(
'UniqueName' => $uniqueName,
'DefaultTtl' => $options['defaultTtl'],
'CallbackUrl' => $options['callbackUrl'],
'GeoMatchLevel' => $options['geoMatchLevel'],
'NumberSelectionBehavior' => $options['numberSelectionBehavior'],
'InterceptCallbackUrl' => $options['interceptCallbackUrl'],
'OutOfSessionCallbackUrl' => $options['outOfSessionCallbackUrl'],
'ChatInstanceSid' => $options['chatInstanceSid'],
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new ServiceInstance($this->version, $payload);
} | php | public function create($uniqueName, $options = array()) {
$options = new Values($options);
$data = Values::of(array(
'UniqueName' => $uniqueName,
'DefaultTtl' => $options['defaultTtl'],
'CallbackUrl' => $options['callbackUrl'],
'GeoMatchLevel' => $options['geoMatchLevel'],
'NumberSelectionBehavior' => $options['numberSelectionBehavior'],
'InterceptCallbackUrl' => $options['interceptCallbackUrl'],
'OutOfSessionCallbackUrl' => $options['outOfSessionCallbackUrl'],
'ChatInstanceSid' => $options['chatInstanceSid'],
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new ServiceInstance($this->version, $payload);
} | [
"public",
"function",
"create",
"(",
"$",
"uniqueName",
",",
"$",
"options",
"=",
"array",
"(",
")",
")",
"{",
"$",
"options",
"=",
"new",
"Values",
"(",
"$",
"options",
")",
";",
"$",
"data",
"=",
"Values",
"::",
"of",
"(",
"array",
"(",
"'UniqueName'",
"=>",
"$",
"uniqueName",
",",
"'DefaultTtl'",
"=>",
"$",
"options",
"[",
"'defaultTtl'",
"]",
",",
"'CallbackUrl'",
"=>",
"$",
"options",
"[",
"'callbackUrl'",
"]",
",",
"'GeoMatchLevel'",
"=>",
"$",
"options",
"[",
"'geoMatchLevel'",
"]",
",",
"'NumberSelectionBehavior'",
"=>",
"$",
"options",
"[",
"'numberSelectionBehavior'",
"]",
",",
"'InterceptCallbackUrl'",
"=>",
"$",
"options",
"[",
"'interceptCallbackUrl'",
"]",
",",
"'OutOfSessionCallbackUrl'",
"=>",
"$",
"options",
"[",
"'outOfSessionCallbackUrl'",
"]",
",",
"'ChatInstanceSid'",
"=>",
"$",
"options",
"[",
"'chatInstanceSid'",
"]",
",",
")",
")",
";",
"$",
"payload",
"=",
"$",
"this",
"->",
"version",
"->",
"create",
"(",
"'POST'",
",",
"$",
"this",
"->",
"uri",
",",
"array",
"(",
")",
",",
"$",
"data",
")",
";",
"return",
"new",
"ServiceInstance",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"payload",
")",
";",
"}"
] | Create a new ServiceInstance
@param string $uniqueName An application-defined string that uniquely
identifies the resource
@param array|Options $options Optional Arguments
@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/Proxy/V1/ServiceList.php#L131-L153 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Recording/AddOnResultContext.php | AddOnResultContext.getPayloads | protected function getPayloads() {
if (!$this->_payloads) {
$this->_payloads = new PayloadList(
$this->version,
$this->solution['accountSid'],
$this->solution['referenceSid'],
$this->solution['sid']
);
}
return $this->_payloads;
} | php | protected function getPayloads() {
if (!$this->_payloads) {
$this->_payloads = new PayloadList(
$this->version,
$this->solution['accountSid'],
$this->solution['referenceSid'],
$this->solution['sid']
);
}
return $this->_payloads;
} | [
"protected",
"function",
"getPayloads",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_payloads",
")",
"{",
"$",
"this",
"->",
"_payloads",
"=",
"new",
"PayloadList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'accountSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'referenceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_payloads",
";",
"}"
] | Access the payloads
@return \Twilio\Rest\Api\V2010\Account\Recording\AddOnResult\PayloadList | [
"Access",
"the",
"payloads"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultContext.php#L88-L99 |
twilio/twilio-php | Twilio/Rest/Chat/V1/Service/Channel/MemberList.php | MemberList.getContext | public function getContext($sid) {
return new MemberContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['channelSid'],
$sid
);
} | php | public function getContext($sid) {
return new MemberContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['channelSid'],
$sid
);
} | [
"public",
"function",
"getContext",
"(",
"$",
"sid",
")",
"{",
"return",
"new",
"MemberContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'channelSid'",
"]",
",",
"$",
"sid",
")",
";",
"}"
] | Constructs a MemberContext
@param string $sid The sid
@return \Twilio\Rest\Chat\V1\Service\Channel\MemberContext | [
"Constructs",
"a",
"MemberContext"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V1/Service/Channel/MemberList.php#L163-L170 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingInstance.php | AuthRegistrationsCredentialListMappingInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new AuthRegistrationsCredentialListMappingContext(
$this->version,
$this->solution['accountSid'],
$this->solution['domainSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new AuthRegistrationsCredentialListMappingContext(
$this->version,
$this->solution['accountSid'],
$this->solution['domainSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"AuthRegistrationsCredentialListMappingContext",
"(",
"$",
"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\AuthTypeRegistrations\AuthRegistrationsCredentialListMappingContext Context for
this AuthRegistrationsCredentialListMappingInstance | [
"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/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingInstance.php#L62-L73 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Call/FeedbackInstance.php | FeedbackInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new FeedbackContext(
$this->version,
$this->solution['accountSid'],
$this->solution['callSid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new FeedbackContext(
$this->version,
$this->solution['accountSid'],
$this->solution['callSid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"FeedbackContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'accountSid'",
"]",
",",
"$",
"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\Call\FeedbackContext Context for this
FeedbackInstance | [
"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/FeedbackInstance.php#L60-L70 |
twilio/twilio-php | Twilio/Rest/Studio/V1/Flow/ExecutionInstance.php | ExecutionInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new ExecutionContext(
$this->version,
$this->solution['flowSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new ExecutionContext(
$this->version,
$this->solution['flowSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"ExecutionContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'flowSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"context",
";",
"}"
] | Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context
@return \Twilio\Rest\Studio\V1\Flow\ExecutionContext Context for this
ExecutionInstance | [
"Generate",
"an",
"instance",
"context",
"for",
"the",
"instance",
"the",
"context",
"is",
"capable",
"of",
"performing",
"various",
"actions",
".",
"All",
"instance",
"actions",
"are",
"proxied",
"to",
"the",
"context"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/Flow/ExecutionInstance.php#L72-L82 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryInstance.php | FeedbackSummaryInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new FeedbackSummaryContext(
$this->version,
$this->solution['accountSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new FeedbackSummaryContext(
$this->version,
$this->solution['accountSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"FeedbackSummaryContext",
"(",
"$",
"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\Call\FeedbackSummaryContext Context
for this
FeedbackSummaryInstance | [
"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/FeedbackSummaryInstance.php#L77-L87 |
twilio/twilio-php | Twilio/Rest/Proxy/V1/Service/Session/ParticipantContext.php | ParticipantContext.getMessageInteractions | protected function getMessageInteractions() {
if (!$this->_messageInteractions) {
$this->_messageInteractions = new MessageInteractionList(
$this->version,
$this->solution['serviceSid'],
$this->solution['sessionSid'],
$this->solution['sid']
);
}
return $this->_messageInteractions;
} | php | protected function getMessageInteractions() {
if (!$this->_messageInteractions) {
$this->_messageInteractions = new MessageInteractionList(
$this->version,
$this->solution['serviceSid'],
$this->solution['sessionSid'],
$this->solution['sid']
);
}
return $this->_messageInteractions;
} | [
"protected",
"function",
"getMessageInteractions",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_messageInteractions",
")",
"{",
"$",
"this",
"->",
"_messageInteractions",
"=",
"new",
"MessageInteractionList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sessionSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_messageInteractions",
";",
"}"
] | Access the messageInteractions
@return \Twilio\Rest\Proxy\V1\Service\Session\Participant\MessageInteractionList | [
"Access",
"the",
"messageInteractions"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Proxy/V1/Service/Session/ParticipantContext.php#L86-L97 |
twilio/twilio-php | Twilio/Rest/Taskrouter/V1/Workspace/TaskInstance.php | TaskInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new TaskContext(
$this->version,
$this->solution['workspaceSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new TaskContext(
$this->version,
$this->solution['workspaceSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"TaskContext",
"(",
"$",
"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\TaskContext Context for this
TaskInstance | [
"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/TaskInstance.php#L90-L100 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingInstance.php | IpAccessControlListMappingInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new IpAccessControlListMappingContext(
$this->version,
$this->solution['accountSid'],
$this->solution['domainSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new IpAccessControlListMappingContext(
$this->version,
$this->solution['accountSid'],
$this->solution['domainSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"IpAccessControlListMappingContext",
"(",
"$",
"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\IpAccessControlListMappingContext Context for this
IpAccessControlListMappingInstance | [
"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/IpAccessControlListMappingInstance.php#L68-L79 |
twilio/twilio-php | Twilio/Rest/Verify/V2/Service/VerificationCheckList.php | VerificationCheckList.create | public function create($code, $options = array()) {
$options = new Values($options);
$data = Values::of(array(
'Code' => $code,
'To' => $options['to'],
'VerificationSid' => $options['verificationSid'],
'Amount' => $options['amount'],
'Payee' => $options['payee'],
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new VerificationCheckInstance($this->version, $payload, $this->solution['serviceSid']);
} | php | public function create($code, $options = array()) {
$options = new Values($options);
$data = Values::of(array(
'Code' => $code,
'To' => $options['to'],
'VerificationSid' => $options['verificationSid'],
'Amount' => $options['amount'],
'Payee' => $options['payee'],
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new VerificationCheckInstance($this->version, $payload, $this->solution['serviceSid']);
} | [
"public",
"function",
"create",
"(",
"$",
"code",
",",
"$",
"options",
"=",
"array",
"(",
")",
")",
"{",
"$",
"options",
"=",
"new",
"Values",
"(",
"$",
"options",
")",
";",
"$",
"data",
"=",
"Values",
"::",
"of",
"(",
"array",
"(",
"'Code'",
"=>",
"$",
"code",
",",
"'To'",
"=>",
"$",
"options",
"[",
"'to'",
"]",
",",
"'VerificationSid'",
"=>",
"$",
"options",
"[",
"'verificationSid'",
"]",
",",
"'Amount'",
"=>",
"$",
"options",
"[",
"'amount'",
"]",
",",
"'Payee'",
"=>",
"$",
"options",
"[",
"'payee'",
"]",
",",
")",
")",
";",
"$",
"payload",
"=",
"$",
"this",
"->",
"version",
"->",
"create",
"(",
"'POST'",
",",
"$",
"this",
"->",
"uri",
",",
"array",
"(",
")",
",",
"$",
"data",
")",
";",
"return",
"new",
"VerificationCheckInstance",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"payload",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
")",
";",
"}"
] | Create a new VerificationCheckInstance
@param string $code The verification string
@param array|Options $options Optional Arguments
@return VerificationCheckInstance Newly created VerificationCheckInstance
@throws TwilioException When an HTTP error occurs. | [
"Create",
"a",
"new",
"VerificationCheckInstance"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Verify/V2/Service/VerificationCheckList.php#L46-L65 |
twilio/twilio-php | Twilio/Rest/Chat/V1/Service/RoleList.php | RoleList.create | public function create($friendlyName, $type, $permission) {
$data = Values::of(array(
'FriendlyName' => $friendlyName,
'Type' => $type,
'Permission' => Serialize::map($permission, function($e) { return $e; }),
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new RoleInstance($this->version, $payload, $this->solution['serviceSid']);
} | php | public function create($friendlyName, $type, $permission) {
$data = Values::of(array(
'FriendlyName' => $friendlyName,
'Type' => $type,
'Permission' => Serialize::map($permission, function($e) { return $e; }),
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new RoleInstance($this->version, $payload, $this->solution['serviceSid']);
} | [
"public",
"function",
"create",
"(",
"$",
"friendlyName",
",",
"$",
"type",
",",
"$",
"permission",
")",
"{",
"$",
"data",
"=",
"Values",
"::",
"of",
"(",
"array",
"(",
"'FriendlyName'",
"=>",
"$",
"friendlyName",
",",
"'Type'",
"=>",
"$",
"type",
",",
"'Permission'",
"=>",
"Serialize",
"::",
"map",
"(",
"$",
"permission",
",",
"function",
"(",
"$",
"e",
")",
"{",
"return",
"$",
"e",
";",
"}",
")",
",",
")",
")",
";",
"$",
"payload",
"=",
"$",
"this",
"->",
"version",
"->",
"create",
"(",
"'POST'",
",",
"$",
"this",
"->",
"uri",
",",
"array",
"(",
")",
",",
"$",
"data",
")",
";",
"return",
"new",
"RoleInstance",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"payload",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
")",
";",
"}"
] | Create a new RoleInstance
@param string $friendlyName The human-readable name of this role.
@param string $type What kind of role this is.
@param string $permission A permission this role should have.
@return RoleInstance Newly created RoleInstance
@throws TwilioException When an HTTP error occurs. | [
"Create",
"a",
"new",
"RoleInstance"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Chat/V1/Service/RoleList.php#L43-L58 |
twilio/twilio-php | Twilio/Rest/Autopilot/V1/Assistant/Task/SampleInstance.php | SampleInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new SampleContext(
$this->version,
$this->solution['assistantSid'],
$this->solution['taskSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new SampleContext(
$this->version,
$this->solution['assistantSid'],
$this->solution['taskSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"SampleContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'assistantSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'taskSid'",
"]",
",",
"$",
"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\Task\SampleContext Context for
this
SampleInstance | [
"Generate",
"an",
"instance",
"context",
"for",
"the",
"instance",
"the",
"context",
"is",
"capable",
"of",
"performing",
"various",
"actions",
".",
"All",
"instance",
"actions",
"are",
"proxied",
"to",
"the",
"context"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleInstance.php#L77-L88 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Recording/AddOnResultInstance.php | AddOnResultInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new AddOnResultContext(
$this->version,
$this->solution['accountSid'],
$this->solution['referenceSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new AddOnResultContext(
$this->version,
$this->solution['accountSid'],
$this->solution['referenceSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"AddOnResultContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'accountSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'referenceSid'",
"]",
",",
"$",
"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\AddOnResultContext Context
for this
AddOnResultInstance | [
"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/AddOnResultInstance.php#L76-L87 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Call/RecordingContext.php | RecordingContext.update | public function update($status, $options = array()) {
$options = new Values($options);
$data = Values::of(array('Status' => $status, 'PauseBehavior' => $options['pauseBehavior'], ));
$payload = $this->version->update(
'POST',
$this->uri,
array(),
$data
);
return new RecordingInstance(
$this->version,
$payload,
$this->solution['accountSid'],
$this->solution['callSid'],
$this->solution['sid']
);
} | php | public function update($status, $options = array()) {
$options = new Values($options);
$data = Values::of(array('Status' => $status, 'PauseBehavior' => $options['pauseBehavior'], ));
$payload = $this->version->update(
'POST',
$this->uri,
array(),
$data
);
return new RecordingInstance(
$this->version,
$payload,
$this->solution['accountSid'],
$this->solution['callSid'],
$this->solution['sid']
);
} | [
"public",
"function",
"update",
"(",
"$",
"status",
",",
"$",
"options",
"=",
"array",
"(",
")",
")",
"{",
"$",
"options",
"=",
"new",
"Values",
"(",
"$",
"options",
")",
";",
"$",
"data",
"=",
"Values",
"::",
"of",
"(",
"array",
"(",
"'Status'",
"=>",
"$",
"status",
",",
"'PauseBehavior'",
"=>",
"$",
"options",
"[",
"'pauseBehavior'",
"]",
",",
")",
")",
";",
"$",
"payload",
"=",
"$",
"this",
"->",
"version",
"->",
"update",
"(",
"'POST'",
",",
"$",
"this",
"->",
"uri",
",",
"array",
"(",
")",
",",
"$",
"data",
")",
";",
"return",
"new",
"RecordingInstance",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"payload",
",",
"$",
"this",
"->",
"solution",
"[",
"'accountSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'callSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}"
] | Update the RecordingInstance
@param string $status The new status of the recording
@param array|Options $options Optional Arguments
@return RecordingInstance Updated RecordingInstance
@throws TwilioException When an HTTP error occurs. | [
"Update",
"the",
"RecordingInstance"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Call/RecordingContext.php#L45-L64 |
twilio/twilio-php | Twilio/Rest/Preview/DeployedDevices/FleetContext.php | FleetContext.getDevices | protected function getDevices() {
if (!$this->_devices) {
$this->_devices = new DeviceList($this->version, $this->solution['sid']);
}
return $this->_devices;
} | php | protected function getDevices() {
if (!$this->_devices) {
$this->_devices = new DeviceList($this->version, $this->solution['sid']);
}
return $this->_devices;
} | [
"protected",
"function",
"getDevices",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_devices",
")",
"{",
"$",
"this",
"->",
"_devices",
"=",
"new",
"DeviceList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_devices",
";",
"}"
] | Access the devices
@return \Twilio\Rest\Preview\DeployedDevices\Fleet\DeviceList | [
"Access",
"the",
"devices"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/DeployedDevices/FleetContext.php#L114-L120 |
twilio/twilio-php | Twilio/Rest/Preview/DeployedDevices/FleetContext.php | FleetContext.getCertificates | protected function getCertificates() {
if (!$this->_certificates) {
$this->_certificates = new CertificateList($this->version, $this->solution['sid']);
}
return $this->_certificates;
} | php | protected function getCertificates() {
if (!$this->_certificates) {
$this->_certificates = new CertificateList($this->version, $this->solution['sid']);
}
return $this->_certificates;
} | [
"protected",
"function",
"getCertificates",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_certificates",
")",
"{",
"$",
"this",
"->",
"_certificates",
"=",
"new",
"CertificateList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_certificates",
";",
"}"
] | Access the certificates
@return \Twilio\Rest\Preview\DeployedDevices\Fleet\CertificateList | [
"Access",
"the",
"certificates"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/DeployedDevices/FleetContext.php#L140-L146 |
twilio/twilio-php | Twilio/Rest/Serverless/V1/Service/EnvironmentContext.php | EnvironmentContext.getVariables | protected function getVariables() {
if (!$this->_variables) {
$this->_variables = new VariableList(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->_variables;
} | php | protected function getVariables() {
if (!$this->_variables) {
$this->_variables = new VariableList(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->_variables;
} | [
"protected",
"function",
"getVariables",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_variables",
")",
"{",
"$",
"this",
"->",
"_variables",
"=",
"new",
"VariableList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_variables",
";",
"}"
] | Access the variables
@return \Twilio\Rest\Serverless\V1\Service\Environment\VariableList | [
"Access",
"the",
"variables"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/Service/EnvironmentContext.php#L76-L86 |
twilio/twilio-php | Twilio/Rest/Serverless/V1/Service/EnvironmentContext.php | EnvironmentContext.getDeployments | protected function getDeployments() {
if (!$this->_deployments) {
$this->_deployments = new DeploymentList(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->_deployments;
} | php | protected function getDeployments() {
if (!$this->_deployments) {
$this->_deployments = new DeploymentList(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->_deployments;
} | [
"protected",
"function",
"getDeployments",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_deployments",
")",
"{",
"$",
"this",
"->",
"_deployments",
"=",
"new",
"DeploymentList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_deployments",
";",
"}"
] | Access the deployments
@return \Twilio\Rest\Serverless\V1\Service\Environment\DeploymentList | [
"Access",
"the",
"deployments"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/Service/EnvironmentContext.php#L93-L103 |
twilio/twilio-php | Twilio/Rest/Video/V1/CompositionSettingsInstance.php | CompositionSettingsInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new CompositionSettingsContext($this->version);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new CompositionSettingsContext($this->version);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"CompositionSettingsContext",
"(",
"$",
"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\CompositionSettingsContext Context for this
CompositionSettingsInstance | [
"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/CompositionSettingsInstance.php#L63-L69 |
twilio/twilio-php | Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsInstance.php | WorkersRealTimeStatisticsInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new WorkersRealTimeStatisticsContext(
$this->version,
$this->solution['workspaceSid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new WorkersRealTimeStatisticsContext(
$this->version,
$this->solution['workspaceSid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"WorkersRealTimeStatisticsContext",
"(",
"$",
"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\Worker\WorkersRealTimeStatisticsContext Context for this
WorkersRealTimeStatisticsInstance | [
"Generate",
"an",
"instance",
"context",
"for",
"the",
"instance",
"the",
"context",
"is",
"capable",
"of",
"performing",
"various",
"actions",
".",
"All",
"instance",
"actions",
"are",
"proxied",
"to",
"the",
"context"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsInstance.php#L56-L65 |
twilio/twilio-php | Twilio/Rest/Studio/V1/FlowInstance.php | FlowInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new FlowContext($this->version, $this->solution['sid']);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new FlowContext($this->version, $this->solution['sid']);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"FlowContext",
"(",
"$",
"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\Studio\V1\FlowContext Context for this FlowInstance | [
"Generate",
"an",
"instance",
"context",
"for",
"the",
"instance",
"the",
"context",
"is",
"capable",
"of",
"performing",
"various",
"actions",
".",
"All",
"instance",
"actions",
"are",
"proxied",
"to",
"the",
"context"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/FlowInstance.php#L66-L72 |
twilio/twilio-php | Twilio/Rest/Autopilot/V1/Assistant/ModelBuildInstance.php | ModelBuildInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new ModelBuildContext(
$this->version,
$this->solution['assistantSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new ModelBuildContext(
$this->version,
$this->solution['assistantSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"ModelBuildContext",
"(",
"$",
"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\ModelBuildContext Context for
this
ModelBuildInstance | [
"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/ModelBuildInstance.php#L72-L82 |
twilio/twilio-php | Twilio/Rest/Studio/V1/FlowContext.php | FlowContext.getEngagements | protected function getEngagements() {
if (!$this->_engagements) {
$this->_engagements = new EngagementList($this->version, $this->solution['sid']);
}
return $this->_engagements;
} | php | protected function getEngagements() {
if (!$this->_engagements) {
$this->_engagements = new EngagementList($this->version, $this->solution['sid']);
}
return $this->_engagements;
} | [
"protected",
"function",
"getEngagements",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_engagements",
")",
"{",
"$",
"this",
"->",
"_engagements",
"=",
"new",
"EngagementList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_engagements",
";",
"}"
] | Access the engagements
@return \Twilio\Rest\Studio\V1\Flow\EngagementList | [
"Access",
"the",
"engagements"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/FlowContext.php#L78-L84 |
twilio/twilio-php | Twilio/Rest/Studio/V1/FlowContext.php | FlowContext.getExecutions | protected function getExecutions() {
if (!$this->_executions) {
$this->_executions = new ExecutionList($this->version, $this->solution['sid']);
}
return $this->_executions;
} | php | protected function getExecutions() {
if (!$this->_executions) {
$this->_executions = new ExecutionList($this->version, $this->solution['sid']);
}
return $this->_executions;
} | [
"protected",
"function",
"getExecutions",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_executions",
")",
"{",
"$",
"this",
"->",
"_executions",
"=",
"new",
"ExecutionList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_executions",
";",
"}"
] | Access the executions
@return \Twilio\Rest\Studio\V1\Flow\ExecutionList | [
"Access",
"the",
"executions"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/FlowContext.php#L91-L97 |
twilio/twilio-php | Twilio/Rest/Preview/DeployedDevices/FleetInstance.php | FleetInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new FleetContext($this->version, $this->solution['sid']);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new FleetContext($this->version, $this->solution['sid']);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"FleetContext",
"(",
"$",
"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\DeployedDevices\FleetContext Context for this
FleetInstance | [
"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/FleetInstance.php#L72-L78 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/AddressContext.php | AddressContext.getDependentPhoneNumbers | protected function getDependentPhoneNumbers() {
if (!$this->_dependentPhoneNumbers) {
$this->_dependentPhoneNumbers = new DependentPhoneNumberList(
$this->version,
$this->solution['accountSid'],
$this->solution['sid']
);
}
return $this->_dependentPhoneNumbers;
} | php | protected function getDependentPhoneNumbers() {
if (!$this->_dependentPhoneNumbers) {
$this->_dependentPhoneNumbers = new DependentPhoneNumberList(
$this->version,
$this->solution['accountSid'],
$this->solution['sid']
);
}
return $this->_dependentPhoneNumbers;
} | [
"protected",
"function",
"getDependentPhoneNumbers",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_dependentPhoneNumbers",
")",
"{",
"$",
"this",
"->",
"_dependentPhoneNumbers",
"=",
"new",
"DependentPhoneNumberList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'accountSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_dependentPhoneNumbers",
";",
"}"
] | Access the dependentPhoneNumbers
@return \Twilio\Rest\Api\V2010\Account\Address\DependentPhoneNumberList | [
"Access",
"the",
"dependentPhoneNumbers"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/AddressContext.php#L118-L128 |
twilio/twilio-php | Twilio/Rest/Serverless/V1/Service/Environment/DeploymentList.php | DeploymentList.create | public function create($buildSid) {
$data = Values::of(array('BuildSid' => $buildSid, ));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new DeploymentInstance(
$this->version,
$payload,
$this->solution['serviceSid'],
$this->solution['environmentSid']
);
} | php | public function create($buildSid) {
$data = Values::of(array('BuildSid' => $buildSid, ));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new DeploymentInstance(
$this->version,
$payload,
$this->solution['serviceSid'],
$this->solution['environmentSid']
);
} | [
"public",
"function",
"create",
"(",
"$",
"buildSid",
")",
"{",
"$",
"data",
"=",
"Values",
"::",
"of",
"(",
"array",
"(",
"'BuildSid'",
"=>",
"$",
"buildSid",
",",
")",
")",
";",
"$",
"payload",
"=",
"$",
"this",
"->",
"version",
"->",
"create",
"(",
"'POST'",
",",
"$",
"this",
"->",
"uri",
",",
"array",
"(",
")",
",",
"$",
"data",
")",
";",
"return",
"new",
"DeploymentInstance",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"payload",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'environmentSid'",
"]",
")",
";",
"}"
] | Create a new DeploymentInstance
@param string $buildSid Build Sid.
@return DeploymentInstance Newly created DeploymentInstance
@throws TwilioException When an HTTP error occurs. | [
"Create",
"a",
"new",
"DeploymentInstance"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/Service/Environment/DeploymentList.php#L130-L146 |
twilio/twilio-php | Twilio/Rest/Serverless/V1/Service/Environment/DeploymentList.php | DeploymentList.getContext | public function getContext($sid) {
return new DeploymentContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['environmentSid'],
$sid
);
} | php | public function getContext($sid) {
return new DeploymentContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['environmentSid'],
$sid
);
} | [
"public",
"function",
"getContext",
"(",
"$",
"sid",
")",
"{",
"return",
"new",
"DeploymentContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'environmentSid'",
"]",
",",
"$",
"sid",
")",
";",
"}"
] | Constructs a DeploymentContext
@param string $sid Deployment Sid.
@return \Twilio\Rest\Serverless\V1\Service\Environment\DeploymentContext | [
"Constructs",
"a",
"DeploymentContext"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Serverless/V1/Service/Environment/DeploymentList.php#L154-L161 |
twilio/twilio-php | Twilio/Rest/Serverless/V1/Service/Environment/VariableInstance.php | VariableInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new VariableContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['environmentSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new VariableContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['environmentSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"VariableContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'environmentSid'",
"]",
",",
"$",
"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\Environment\VariableContext Context for this VariableInstance | [
"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/Environment/VariableInstance.php#L72-L83 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryInstance.php | AvailablePhoneNumberCountryInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new AvailablePhoneNumberCountryContext(
$this->version,
$this->solution['accountSid'],
$this->solution['countryCode']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new AvailablePhoneNumberCountryContext(
$this->version,
$this->solution['accountSid'],
$this->solution['countryCode']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"AvailablePhoneNumberCountryContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'accountSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'countryCode'",
"]",
")",
";",
"}",
"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\AvailablePhoneNumberCountryContext Context for this AvailablePhoneNumberCountryInstance | [
"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/AvailablePhoneNumberCountryInstance.php#L68-L78 |
twilio/twilio-php | Twilio/Rest/FlexApi/V1/FlexFlowInstance.php | FlexFlowInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new FlexFlowContext($this->version, $this->solution['sid']);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new FlexFlowContext($this->version, $this->solution['sid']);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"FlexFlowContext",
"(",
"$",
"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\FlexApi\V1\FlexFlowContext Context for this
FlexFlowInstance | [
"Generate",
"an",
"instance",
"context",
"for",
"the",
"instance",
"the",
"context",
"is",
"capable",
"of",
"performing",
"various",
"actions",
".",
"All",
"instance",
"actions",
"are",
"proxied",
"to",
"the",
"context"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/FlexApi/V1/FlexFlowInstance.php#L73-L79 |
twilio/twilio-php | Twilio/Rest/Serverless/V1/Service/BuildInstance.php | BuildInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new BuildContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new BuildContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"BuildContext",
"(",
"$",
"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\Serverless\V1\Service\BuildContext Context for this
BuildInstance | [
"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/BuildInstance.php#L69-L79 |
twilio/twilio-php | Twilio/Rest/Serverless/V1/Service/EnvironmentInstance.php | EnvironmentInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new EnvironmentContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new EnvironmentContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"EnvironmentContext",
"(",
"$",
"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\Serverless\V1\Service\EnvironmentContext Context for
this
EnvironmentInstance | [
"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/EnvironmentInstance.php#L75-L85 |
twilio/twilio-php | Twilio/Rest/Messaging/V1/Service/ShortCodeList.php | ShortCodeList.create | public function create($shortCodeSid) {
$data = Values::of(array('ShortCodeSid' => $shortCodeSid, ));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new ShortCodeInstance($this->version, $payload, $this->solution['serviceSid']);
} | php | public function create($shortCodeSid) {
$data = Values::of(array('ShortCodeSid' => $shortCodeSid, ));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new ShortCodeInstance($this->version, $payload, $this->solution['serviceSid']);
} | [
"public",
"function",
"create",
"(",
"$",
"shortCodeSid",
")",
"{",
"$",
"data",
"=",
"Values",
"::",
"of",
"(",
"array",
"(",
"'ShortCodeSid'",
"=>",
"$",
"shortCodeSid",
",",
")",
")",
";",
"$",
"payload",
"=",
"$",
"this",
"->",
"version",
"->",
"create",
"(",
"'POST'",
",",
"$",
"this",
"->",
"uri",
",",
"array",
"(",
")",
",",
"$",
"data",
")",
";",
"return",
"new",
"ShortCodeInstance",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"payload",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
")",
";",
"}"
] | Create a new ShortCodeInstance
@param string $shortCodeSid SID of the ShortCode being added to the Service.
@return ShortCodeInstance Newly created ShortCodeInstance
@throws TwilioException When an HTTP error occurs. | [
"Create",
"a",
"new",
"ShortCodeInstance"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Messaging/V1/Service/ShortCodeList.php#L44-L55 |
twilio/twilio-php | Twilio/Rest/Trunking/V1/Trunk/TerminatingSipDomainList.php | TerminatingSipDomainList.create | public function create($sipDomainSid) {
$data = Values::of(array('SipDomainSid' => $sipDomainSid, ));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new TerminatingSipDomainInstance($this->version, $payload, $this->solution['trunkSid']);
} | php | public function create($sipDomainSid) {
$data = Values::of(array('SipDomainSid' => $sipDomainSid, ));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new TerminatingSipDomainInstance($this->version, $payload, $this->solution['trunkSid']);
} | [
"public",
"function",
"create",
"(",
"$",
"sipDomainSid",
")",
"{",
"$",
"data",
"=",
"Values",
"::",
"of",
"(",
"array",
"(",
"'SipDomainSid'",
"=>",
"$",
"sipDomainSid",
",",
")",
")",
";",
"$",
"payload",
"=",
"$",
"this",
"->",
"version",
"->",
"create",
"(",
"'POST'",
",",
"$",
"this",
"->",
"uri",
",",
"array",
"(",
")",
",",
"$",
"data",
")",
";",
"return",
"new",
"TerminatingSipDomainInstance",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"payload",
",",
"$",
"this",
"->",
"solution",
"[",
"'trunkSid'",
"]",
")",
";",
"}"
] | Create a new TerminatingSipDomainInstance
@param string $sipDomainSid The SID of the SIP Domain to associate with the
trunk
@return TerminatingSipDomainInstance Newly created
TerminatingSipDomainInstance
@throws TwilioException When an HTTP error occurs. | [
"Create",
"a",
"new",
"TerminatingSipDomainInstance"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Trunking/V1/Trunk/TerminatingSipDomainList.php#L42-L53 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Call/RecordingList.php | RecordingList.getContext | public function getContext($sid) {
return new RecordingContext(
$this->version,
$this->solution['accountSid'],
$this->solution['callSid'],
$sid
);
} | php | public function getContext($sid) {
return new RecordingContext(
$this->version,
$this->solution['accountSid'],
$this->solution['callSid'],
$sid
);
} | [
"public",
"function",
"getContext",
"(",
"$",
"sid",
")",
"{",
"return",
"new",
"RecordingContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'accountSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'callSid'",
"]",
",",
"$",
"sid",
")",
";",
"}"
] | Constructs a RecordingContext
@param string $sid The unique string that identifies the resource
@return \Twilio\Rest\Api\V2010\Account\Call\RecordingContext | [
"Constructs",
"a",
"RecordingContext"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Call/RecordingList.php#L168-L175 |
twilio/twilio-php | Twilio/Rest/Video/V1/CompositionList.php | CompositionList.create | public function create($roomSid, $options = array()) {
$options = new Values($options);
$data = Values::of(array(
'RoomSid' => $roomSid,
'VideoLayout' => Serialize::jsonObject($options['videoLayout']),
'AudioSources' => Serialize::map($options['audioSources'], function($e) { return $e; }),
'AudioSourcesExcluded' => Serialize::map($options['audioSourcesExcluded'], function($e) { return $e; }),
'Resolution' => $options['resolution'],
'Format' => $options['format'],
'StatusCallback' => $options['statusCallback'],
'StatusCallbackMethod' => $options['statusCallbackMethod'],
'Trim' => Serialize::booleanToString($options['trim']),
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new CompositionInstance($this->version, $payload);
} | php | public function create($roomSid, $options = array()) {
$options = new Values($options);
$data = Values::of(array(
'RoomSid' => $roomSid,
'VideoLayout' => Serialize::jsonObject($options['videoLayout']),
'AudioSources' => Serialize::map($options['audioSources'], function($e) { return $e; }),
'AudioSourcesExcluded' => Serialize::map($options['audioSourcesExcluded'], function($e) { return $e; }),
'Resolution' => $options['resolution'],
'Format' => $options['format'],
'StatusCallback' => $options['statusCallback'],
'StatusCallbackMethod' => $options['statusCallbackMethod'],
'Trim' => Serialize::booleanToString($options['trim']),
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new CompositionInstance($this->version, $payload);
} | [
"public",
"function",
"create",
"(",
"$",
"roomSid",
",",
"$",
"options",
"=",
"array",
"(",
")",
")",
"{",
"$",
"options",
"=",
"new",
"Values",
"(",
"$",
"options",
")",
";",
"$",
"data",
"=",
"Values",
"::",
"of",
"(",
"array",
"(",
"'RoomSid'",
"=>",
"$",
"roomSid",
",",
"'VideoLayout'",
"=>",
"Serialize",
"::",
"jsonObject",
"(",
"$",
"options",
"[",
"'videoLayout'",
"]",
")",
",",
"'AudioSources'",
"=>",
"Serialize",
"::",
"map",
"(",
"$",
"options",
"[",
"'audioSources'",
"]",
",",
"function",
"(",
"$",
"e",
")",
"{",
"return",
"$",
"e",
";",
"}",
")",
",",
"'AudioSourcesExcluded'",
"=>",
"Serialize",
"::",
"map",
"(",
"$",
"options",
"[",
"'audioSourcesExcluded'",
"]",
",",
"function",
"(",
"$",
"e",
")",
"{",
"return",
"$",
"e",
";",
"}",
")",
",",
"'Resolution'",
"=>",
"$",
"options",
"[",
"'resolution'",
"]",
",",
"'Format'",
"=>",
"$",
"options",
"[",
"'format'",
"]",
",",
"'StatusCallback'",
"=>",
"$",
"options",
"[",
"'statusCallback'",
"]",
",",
"'StatusCallbackMethod'",
"=>",
"$",
"options",
"[",
"'statusCallbackMethod'",
"]",
",",
"'Trim'",
"=>",
"Serialize",
"::",
"booleanToString",
"(",
"$",
"options",
"[",
"'trim'",
"]",
")",
",",
")",
")",
";",
"$",
"payload",
"=",
"$",
"this",
"->",
"version",
"->",
"create",
"(",
"'POST'",
",",
"$",
"this",
"->",
"uri",
",",
"array",
"(",
")",
",",
"$",
"data",
")",
";",
"return",
"new",
"CompositionInstance",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"payload",
")",
";",
"}"
] | Create a new CompositionInstance
@param string $roomSid Twilio Room SID.
@param array|Options $options Optional Arguments
@return CompositionInstance Newly created CompositionInstance
@throws TwilioException When an HTTP error occurs. | [
"Create",
"a",
"new",
"CompositionInstance"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Video/V1/CompositionList.php#L139-L162 |
twilio/twilio-php | Twilio/Rest/Preview/Sync/Service/SyncListInstance.php | SyncListInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new SyncListContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new SyncListContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"SyncListContext",
"(",
"$",
"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\SyncListContext Context for this
SyncListInstance | [
"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/SyncListInstance.php#L72-L82 |
twilio/twilio-php | Twilio/Rest/Authy/V1/ServiceContext.php | ServiceContext.getEntities | protected function getEntities() {
if (!$this->_entities) {
$this->_entities = new EntityList($this->version, $this->solution['sid']);
}
return $this->_entities;
} | php | protected function getEntities() {
if (!$this->_entities) {
$this->_entities = new EntityList($this->version, $this->solution['sid']);
}
return $this->_entities;
} | [
"protected",
"function",
"getEntities",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_entities",
")",
"{",
"$",
"this",
"->",
"_entities",
"=",
"new",
"EntityList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_entities",
";",
"}"
] | Access the entities
@return \Twilio\Rest\Authy\V1\Service\EntityList | [
"Access",
"the",
"entities"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Authy/V1/ServiceContext.php#L99-L105 |
twilio/twilio-php | Twilio/Rest/Sync/V1/Service/SyncStreamInstance.php | SyncStreamInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new SyncStreamContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new SyncStreamContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"SyncStreamContext",
"(",
"$",
"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\Sync\V1\Service\SyncStreamContext Context for this
SyncStreamInstance | [
"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/Sync/V1/Service/SyncStreamInstance.php#L72-L82 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionInstance.php | AssignedAddOnExtensionInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new AssignedAddOnExtensionContext(
$this->version,
$this->solution['accountSid'],
$this->solution['resourceSid'],
$this->solution['assignedAddOnSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new AssignedAddOnExtensionContext(
$this->version,
$this->solution['accountSid'],
$this->solution['resourceSid'],
$this->solution['assignedAddOnSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"AssignedAddOnExtensionContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'accountSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'resourceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'assignedAddOnSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"context",
";",
"}"
] | Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context
@return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumber\AssignedAddOn\AssignedAddOnExtensionContext Context for this
AssignedAddOnExtensionInstance | [
"Generate",
"an",
"instance",
"context",
"for",
"the",
"instance",
"the",
"context",
"is",
"capable",
"of",
"performing",
"various",
"actions",
".",
"All",
"instance",
"actions",
"are",
"proxied",
"to",
"the",
"context"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionInstance.php#L75-L87 |
twilio/twilio-php | Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextList.php | StepContextList.getContext | public function getContext() {
return new StepContextContext(
$this->version,
$this->solution['flowSid'],
$this->solution['engagementSid'],
$this->solution['stepSid']
);
} | php | public function getContext() {
return new StepContextContext(
$this->version,
$this->solution['flowSid'],
$this->solution['engagementSid'],
$this->solution['stepSid']
);
} | [
"public",
"function",
"getContext",
"(",
")",
"{",
"return",
"new",
"StepContextContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'flowSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'engagementSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'stepSid'",
"]",
")",
";",
"}"
] | Constructs a StepContextContext
@return \Twilio\Rest\Studio\V1\Flow\Engagement\Step\StepContextContext | [
"Constructs",
"a",
"StepContextContext"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextList.php#L41-L48 |
twilio/twilio-php | Twilio/Rest/Insights/V1/CallSummaryInstance.php | CallSummaryInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new CallSummaryContext($this->version, $this->solution['callSid']);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new CallSummaryContext($this->version, $this->solution['callSid']);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"CallSummaryContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"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\Insights\V1\CallSummaryContext Context for this
CallSummaryInstance | [
"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/Insights/V1/CallSummaryInstance.php#L84-L90 |
twilio/twilio-php | Twilio/Rest/Taskrouter/V1/Workspace/WorkerInstance.php | WorkerInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new WorkerContext(
$this->version,
$this->solution['workspaceSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new WorkerContext(
$this->version,
$this->solution['workspaceSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"WorkerContext",
"(",
"$",
"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\WorkerContext Context for this
WorkerInstance | [
"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/WorkerInstance.php#L81-L91 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/MessageInstance.php | MessageInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new MessageContext(
$this->version,
$this->solution['accountSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new MessageContext(
$this->version,
$this->solution['accountSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"MessageContext",
"(",
"$",
"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\MessageContext Context for this
MessageInstance | [
"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/MessageInstance.php#L90-L100 |
twilio/twilio-php | Twilio/Rest/Preview/Marketplace/AvailableAddOnContext.php | AvailableAddOnContext.getExtensions | protected function getExtensions() {
if (!$this->_extensions) {
$this->_extensions = new AvailableAddOnExtensionList($this->version, $this->solution['sid']);
}
return $this->_extensions;
} | php | protected function getExtensions() {
if (!$this->_extensions) {
$this->_extensions = new AvailableAddOnExtensionList($this->version, $this->solution['sid']);
}
return $this->_extensions;
} | [
"protected",
"function",
"getExtensions",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_extensions",
")",
"{",
"$",
"this",
"->",
"_extensions",
"=",
"new",
"AvailableAddOnExtensionList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_extensions",
";",
"}"
] | Access the extensions
@return \Twilio\Rest\Preview\Marketplace\AvailableAddOn\AvailableAddOnExtensionList | [
"Access",
"the",
"extensions"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Marketplace/AvailableAddOnContext.php#L66-L72 |
twilio/twilio-php | Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsInstance.php | WorkersStatisticsInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new WorkersStatisticsContext($this->version, $this->solution['workspaceSid']);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new WorkersStatisticsContext($this->version, $this->solution['workspaceSid']);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"WorkersStatisticsContext",
"(",
"$",
"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\Worker\WorkersStatisticsContext Context for this WorkersStatisticsInstance | [
"Generate",
"an",
"instance",
"context",
"for",
"the",
"instance",
"the",
"context",
"is",
"capable",
"of",
"performing",
"various",
"actions",
".",
"All",
"instance",
"actions",
"are",
"proxied",
"to",
"the",
"context"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsInstance.php#L56-L62 |
twilio/twilio-php | Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsInstance.php | WorkflowStatisticsInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new WorkflowStatisticsContext(
$this->version,
$this->solution['workspaceSid'],
$this->solution['workflowSid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new WorkflowStatisticsContext(
$this->version,
$this->solution['workspaceSid'],
$this->solution['workflowSid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"WorkflowStatisticsContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'workspaceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'workflowSid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"context",
";",
"}"
] | Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context
@return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowStatisticsContext Context for this
WorkflowStatisticsInstance | [
"Generate",
"an",
"instance",
"context",
"for",
"the",
"instance",
"the",
"context",
"is",
"capable",
"of",
"performing",
"various",
"actions",
".",
"All",
"instance",
"actions",
"are",
"proxied",
"to",
"the",
"context"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsInstance.php#L59-L69 |
twilio/twilio-php | Twilio/Rest/Api/V2010/AccountInstance.php | AccountInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new AccountContext($this->version, $this->solution['sid']);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new AccountContext($this->version, $this->solution['sid']);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"AccountContext",
"(",
"$",
"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\Api\V2010\AccountContext Context for this
AccountInstance | [
"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/AccountInstance.php#L92-L98 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Recording/AddOnResultList.php | AddOnResultList.getContext | public function getContext($sid) {
return new AddOnResultContext(
$this->version,
$this->solution['accountSid'],
$this->solution['referenceSid'],
$sid
);
} | php | public function getContext($sid) {
return new AddOnResultContext(
$this->version,
$this->solution['accountSid'],
$this->solution['referenceSid'],
$sid
);
} | [
"public",
"function",
"getContext",
"(",
"$",
"sid",
")",
"{",
"return",
"new",
"AddOnResultContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'accountSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'referenceSid'",
"]",
",",
"$",
"sid",
")",
";",
"}"
] | Constructs a AddOnResultContext
@param string $sid The unique string that identifies the resource to fetch
@return \Twilio\Rest\Api\V2010\Account\Recording\AddOnResultContext | [
"Constructs",
"a",
"AddOnResultContext"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultList.php#L127-L134 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListContext.php | IpAccessControlListContext.getIpAddresses | protected function getIpAddresses() {
if (!$this->_ipAddresses) {
$this->_ipAddresses = new IpAddressList(
$this->version,
$this->solution['accountSid'],
$this->solution['sid']
);
}
return $this->_ipAddresses;
} | php | protected function getIpAddresses() {
if (!$this->_ipAddresses) {
$this->_ipAddresses = new IpAddressList(
$this->version,
$this->solution['accountSid'],
$this->solution['sid']
);
}
return $this->_ipAddresses;
} | [
"protected",
"function",
"getIpAddresses",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_ipAddresses",
")",
"{",
"$",
"this",
"->",
"_ipAddresses",
"=",
"new",
"IpAddressList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'accountSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_ipAddresses",
";",
"}"
] | Access the ipAddresses
@return \Twilio\Rest\Api\V2010\Account\Sip\IpAccessControlList\IpAddressList | [
"Access",
"the",
"ipAddresses"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListContext.php#L105-L115 |
twilio/twilio-php | Twilio/Jwt/Grants/VideoGrant.php | VideoGrant.getPayload | public function getPayload() {
$payload = array();
if ($this->configurationProfileSid) {
$payload['configuration_profile_sid'] = $this->configurationProfileSid;
}
if ($this->room) {
$payload['room'] = $this->room;
}
return $payload;
} | php | public function getPayload() {
$payload = array();
if ($this->configurationProfileSid) {
$payload['configuration_profile_sid'] = $this->configurationProfileSid;
}
if ($this->room) {
$payload['room'] = $this->room;
}
return $payload;
} | [
"public",
"function",
"getPayload",
"(",
")",
"{",
"$",
"payload",
"=",
"array",
"(",
")",
";",
"if",
"(",
"$",
"this",
"->",
"configurationProfileSid",
")",
"{",
"$",
"payload",
"[",
"'configuration_profile_sid'",
"]",
"=",
"$",
"this",
"->",
"configurationProfileSid",
";",
"}",
"if",
"(",
"$",
"this",
"->",
"room",
")",
"{",
"$",
"payload",
"[",
"'room'",
"]",
"=",
"$",
"this",
"->",
"room",
";",
"}",
"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/VideoGrant.php#L69-L78 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Message/MediaList.php | MediaList.getContext | public function getContext($sid) {
return new MediaContext(
$this->version,
$this->solution['accountSid'],
$this->solution['messageSid'],
$sid
);
} | php | public function getContext($sid) {
return new MediaContext(
$this->version,
$this->solution['accountSid'],
$this->solution['messageSid'],
$sid
);
} | [
"public",
"function",
"getContext",
"(",
"$",
"sid",
")",
"{",
"return",
"new",
"MediaContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'accountSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'messageSid'",
"]",
",",
"$",
"sid",
")",
";",
"}"
] | Constructs a MediaContext
@param string $sid The unique string that identifies this resource
@return \Twilio\Rest\Api\V2010\Account\Message\MediaContext | [
"Constructs",
"a",
"MediaContext"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/Message/MediaList.php#L135-L142 |
twilio/twilio-php | Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueList.php | TaskQueueList.getStatistics | protected function getStatistics() {
if (!$this->_statistics) {
$this->_statistics = new TaskQueuesStatisticsList($this->version, $this->solution['workspaceSid']);
}
return $this->_statistics;
} | php | protected function getStatistics() {
if (!$this->_statistics) {
$this->_statistics = new TaskQueuesStatisticsList($this->version, $this->solution['workspaceSid']);
}
return $this->_statistics;
} | [
"protected",
"function",
"getStatistics",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_statistics",
")",
"{",
"$",
"this",
"->",
"_statistics",
"=",
"new",
"TaskQueuesStatisticsList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'workspaceSid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_statistics",
";",
"}"
] | Access the statistics | [
"Access",
"the",
"statistics"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueList.php#L167-L173 |
twilio/twilio-php | Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextInstance.php | ExecutionContextInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new ExecutionContextContext(
$this->version,
$this->solution['flowSid'],
$this->solution['executionSid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new ExecutionContextContext(
$this->version,
$this->solution['flowSid'],
$this->solution['executionSid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"ExecutionContextContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'flowSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'executionSid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"context",
";",
"}"
] | Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context
@return \Twilio\Rest\Studio\V1\Flow\Execution\ExecutionContextContext Context for this ExecutionContextInstance | [
"Generate",
"an",
"instance",
"context",
"for",
"the",
"instance",
"the",
"context",
"is",
"capable",
"of",
"performing",
"various",
"actions",
".",
"All",
"instance",
"actions",
"are",
"proxied",
"to",
"the",
"context"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextInstance.php#L55-L65 |
twilio/twilio-php | Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionInstance.php | DocumentPermissionInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new DocumentPermissionContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['documentSid'],
$this->solution['identity']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new DocumentPermissionContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['documentSid'],
$this->solution['identity']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"DocumentPermissionContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'documentSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'identity'",
"]",
")",
";",
"}",
"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\Document\DocumentPermissionContext Context for this DocumentPermissionInstance | [
"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/Document/DocumentPermissionInstance.php#L69-L80 |
twilio/twilio-php | Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionInstance.php | DocumentPermissionInstance.update | public function update($read, $write, $manage) {
return $this->proxy()->update($read, $write, $manage);
} | php | public function update($read, $write, $manage) {
return $this->proxy()->update($read, $write, $manage);
} | [
"public",
"function",
"update",
"(",
"$",
"read",
",",
"$",
"write",
",",
"$",
"manage",
")",
"{",
"return",
"$",
"this",
"->",
"proxy",
"(",
")",
"->",
"update",
"(",
"$",
"read",
",",
"$",
"write",
",",
"$",
"manage",
")",
";",
"}"
] | Update the DocumentPermissionInstance
@param boolean $read Read access.
@param boolean $write Write access.
@param boolean $manage Manage access.
@return DocumentPermissionInstance Updated DocumentPermissionInstance
@throws TwilioException When an HTTP error occurs. | [
"Update",
"the",
"DocumentPermissionInstance"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionInstance.php#L111-L113 |
twilio/twilio-php | Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionInstance.php | SyncMapPermissionInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new SyncMapPermissionContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['mapSid'],
$this->solution['identity']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new SyncMapPermissionContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['mapSid'],
$this->solution['identity']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"SyncMapPermissionContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'mapSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'identity'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"context",
";",
"}"
] | Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context
@return \Twilio\Rest\Preview\Sync\Service\SyncMap\SyncMapPermissionContext Context for this SyncMapPermissionInstance | [
"Generate",
"an",
"instance",
"context",
"for",
"the",
"instance",
"the",
"context",
"is",
"capable",
"of",
"performing",
"various",
"actions",
".",
"All",
"instance",
"actions",
"are",
"proxied",
"to",
"the",
"context"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionInstance.php#L69-L80 |
twilio/twilio-php | Twilio/Rest/Verify/V2/ServiceContext.php | ServiceContext.getVerifications | protected function getVerifications() {
if (!$this->_verifications) {
$this->_verifications = new VerificationList($this->version, $this->solution['sid']);
}
return $this->_verifications;
} | php | protected function getVerifications() {
if (!$this->_verifications) {
$this->_verifications = new VerificationList($this->version, $this->solution['sid']);
}
return $this->_verifications;
} | [
"protected",
"function",
"getVerifications",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_verifications",
")",
"{",
"$",
"this",
"->",
"_verifications",
"=",
"new",
"VerificationList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_verifications",
";",
"}"
] | Access the verifications
@return \Twilio\Rest\Verify\V2\Service\VerificationList | [
"Access",
"the",
"verifications"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Verify/V2/ServiceContext.php#L111-L117 |
twilio/twilio-php | Twilio/Rest/Verify/V2/ServiceContext.php | ServiceContext.getVerificationChecks | protected function getVerificationChecks() {
if (!$this->_verificationChecks) {
$this->_verificationChecks = new VerificationCheckList($this->version, $this->solution['sid']);
}
return $this->_verificationChecks;
} | php | protected function getVerificationChecks() {
if (!$this->_verificationChecks) {
$this->_verificationChecks = new VerificationCheckList($this->version, $this->solution['sid']);
}
return $this->_verificationChecks;
} | [
"protected",
"function",
"getVerificationChecks",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_verificationChecks",
")",
"{",
"$",
"this",
"->",
"_verificationChecks",
"=",
"new",
"VerificationCheckList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_verificationChecks",
";",
"}"
] | Access the verificationChecks
@return \Twilio\Rest\Verify\V2\Service\VerificationCheckList | [
"Access",
"the",
"verificationChecks"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Verify/V2/ServiceContext.php#L124-L130 |
twilio/twilio-php | Twilio/Rest/Taskrouter/V1/Workspace/WorkflowInstance.php | WorkflowInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new WorkflowContext(
$this->version,
$this->solution['workspaceSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new WorkflowContext(
$this->version,
$this->solution['workspaceSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"WorkflowContext",
"(",
"$",
"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\WorkflowContext Context for
this
WorkflowInstance | [
"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/WorkflowInstance.php#L80-L90 |
twilio/twilio-php | Twilio/Rest/Preview/Sync/Service/DocumentContext.php | DocumentContext.update | public function update($data) {
$data = Values::of(array('Data' => Serialize::jsonObject($data), ));
$payload = $this->version->update(
'POST',
$this->uri,
array(),
$data
);
return new DocumentInstance(
$this->version,
$payload,
$this->solution['serviceSid'],
$this->solution['sid']
);
} | php | public function update($data) {
$data = Values::of(array('Data' => Serialize::jsonObject($data), ));
$payload = $this->version->update(
'POST',
$this->uri,
array(),
$data
);
return new DocumentInstance(
$this->version,
$payload,
$this->solution['serviceSid'],
$this->solution['sid']
);
} | [
"public",
"function",
"update",
"(",
"$",
"data",
")",
"{",
"$",
"data",
"=",
"Values",
"::",
"of",
"(",
"array",
"(",
"'Data'",
"=>",
"Serialize",
"::",
"jsonObject",
"(",
"$",
"data",
")",
",",
")",
")",
";",
"$",
"payload",
"=",
"$",
"this",
"->",
"version",
"->",
"update",
"(",
"'POST'",
",",
"$",
"this",
"->",
"uri",
",",
"array",
"(",
")",
",",
"$",
"data",
")",
";",
"return",
"new",
"DocumentInstance",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"payload",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}"
] | Update the DocumentInstance
@param array $data The data
@return DocumentInstance Updated DocumentInstance
@throws TwilioException When an HTTP error occurs. | [
"Update",
"the",
"DocumentInstance"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/DocumentContext.php#L85-L101 |
twilio/twilio-php | Twilio/Rest/Preview/Sync/Service/DocumentContext.php | DocumentContext.getDocumentPermissions | protected function getDocumentPermissions() {
if (!$this->_documentPermissions) {
$this->_documentPermissions = new DocumentPermissionList(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->_documentPermissions;
} | php | protected function getDocumentPermissions() {
if (!$this->_documentPermissions) {
$this->_documentPermissions = new DocumentPermissionList(
$this->version,
$this->solution['serviceSid'],
$this->solution['sid']
);
}
return $this->_documentPermissions;
} | [
"protected",
"function",
"getDocumentPermissions",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_documentPermissions",
")",
"{",
"$",
"this",
"->",
"_documentPermissions",
"=",
"new",
"DocumentPermissionList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_documentPermissions",
";",
"}"
] | Access the documentPermissions
@return \Twilio\Rest\Preview\Sync\Service\Document\DocumentPermissionList | [
"Access",
"the",
"documentPermissions"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Preview/Sync/Service/DocumentContext.php#L108-L118 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialInstance.php | CredentialInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new CredentialContext(
$this->version,
$this->solution['accountSid'],
$this->solution['credentialListSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new CredentialContext(
$this->version,
$this->solution['accountSid'],
$this->solution['credentialListSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"CredentialContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'accountSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'credentialListSid'",
"]",
",",
"$",
"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\CredentialList\CredentialContext Context for this CredentialInstance | [
"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/CredentialList/CredentialInstance.php#L69-L80 |
twilio/twilio-php | Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionInstance.php | SyncListPermissionInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new SyncListPermissionContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['listSid'],
$this->solution['identity']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new SyncListPermissionContext(
$this->version,
$this->solution['serviceSid'],
$this->solution['listSid'],
$this->solution['identity']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"SyncListPermissionContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'serviceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'listSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'identity'",
"]",
")",
";",
"}",
"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\SyncList\SyncListPermissionContext Context for this SyncListPermissionInstance | [
"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/SyncList/SyncListPermissionInstance.php#L69-L80 |
twilio/twilio-php | Twilio/Rest/Taskrouter/V1/Workspace/WorkerContext.php | WorkerContext.getRealTimeStatistics | protected function getRealTimeStatistics() {
if (!$this->_realTimeStatistics) {
$this->_realTimeStatistics = new WorkersRealTimeStatisticsList(
$this->version,
$this->solution['workspaceSid']
);
}
return $this->_realTimeStatistics;
} | php | protected function getRealTimeStatistics() {
if (!$this->_realTimeStatistics) {
$this->_realTimeStatistics = new WorkersRealTimeStatisticsList(
$this->version,
$this->solution['workspaceSid']
);
}
return $this->_realTimeStatistics;
} | [
"protected",
"function",
"getRealTimeStatistics",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_realTimeStatistics",
")",
"{",
"$",
"this",
"->",
"_realTimeStatistics",
"=",
"new",
"WorkersRealTimeStatisticsList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'workspaceSid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_realTimeStatistics",
";",
"}"
] | Access the realTimeStatistics
@return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkersRealTimeStatisticsList | [
"Access",
"the",
"realTimeStatistics"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/WorkerContext.php#L130-L139 |
twilio/twilio-php | Twilio/Rest/Taskrouter/V1/Workspace/WorkerContext.php | WorkerContext.getCumulativeStatistics | protected function getCumulativeStatistics() {
if (!$this->_cumulativeStatistics) {
$this->_cumulativeStatistics = new WorkersCumulativeStatisticsList(
$this->version,
$this->solution['workspaceSid']
);
}
return $this->_cumulativeStatistics;
} | php | protected function getCumulativeStatistics() {
if (!$this->_cumulativeStatistics) {
$this->_cumulativeStatistics = new WorkersCumulativeStatisticsList(
$this->version,
$this->solution['workspaceSid']
);
}
return $this->_cumulativeStatistics;
} | [
"protected",
"function",
"getCumulativeStatistics",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_cumulativeStatistics",
")",
"{",
"$",
"this",
"->",
"_cumulativeStatistics",
"=",
"new",
"WorkersCumulativeStatisticsList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'workspaceSid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_cumulativeStatistics",
";",
"}"
] | Access the cumulativeStatistics
@return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkersCumulativeStatisticsList | [
"Access",
"the",
"cumulativeStatistics"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/WorkerContext.php#L146-L155 |
twilio/twilio-php | Twilio/Rest/Taskrouter/V1/Workspace/WorkerContext.php | WorkerContext.getStatistics | protected function getStatistics() {
if (!$this->_statistics) {
$this->_statistics = new WorkerStatisticsList(
$this->version,
$this->solution['workspaceSid'],
$this->solution['sid']
);
}
return $this->_statistics;
} | php | protected function getStatistics() {
if (!$this->_statistics) {
$this->_statistics = new WorkerStatisticsList(
$this->version,
$this->solution['workspaceSid'],
$this->solution['sid']
);
}
return $this->_statistics;
} | [
"protected",
"function",
"getStatistics",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_statistics",
")",
"{",
"$",
"this",
"->",
"_statistics",
"=",
"new",
"WorkerStatisticsList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'workspaceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_statistics",
";",
"}"
] | Access the statistics
@return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkerStatisticsList | [
"Access",
"the",
"statistics"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/WorkerContext.php#L162-L172 |
twilio/twilio-php | Twilio/Rest/Taskrouter/V1/Workspace/WorkerContext.php | WorkerContext.getReservations | protected function getReservations() {
if (!$this->_reservations) {
$this->_reservations = new ReservationList(
$this->version,
$this->solution['workspaceSid'],
$this->solution['sid']
);
}
return $this->_reservations;
} | php | protected function getReservations() {
if (!$this->_reservations) {
$this->_reservations = new ReservationList(
$this->version,
$this->solution['workspaceSid'],
$this->solution['sid']
);
}
return $this->_reservations;
} | [
"protected",
"function",
"getReservations",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_reservations",
")",
"{",
"$",
"this",
"->",
"_reservations",
"=",
"new",
"ReservationList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'workspaceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_reservations",
";",
"}"
] | Access the reservations
@return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\ReservationList | [
"Access",
"the",
"reservations"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/WorkerContext.php#L179-L189 |
twilio/twilio-php | Twilio/Rest/Taskrouter/V1/Workspace/WorkerContext.php | WorkerContext.getWorkerChannels | protected function getWorkerChannels() {
if (!$this->_workerChannels) {
$this->_workerChannels = new WorkerChannelList(
$this->version,
$this->solution['workspaceSid'],
$this->solution['sid']
);
}
return $this->_workerChannels;
} | php | protected function getWorkerChannels() {
if (!$this->_workerChannels) {
$this->_workerChannels = new WorkerChannelList(
$this->version,
$this->solution['workspaceSid'],
$this->solution['sid']
);
}
return $this->_workerChannels;
} | [
"protected",
"function",
"getWorkerChannels",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_workerChannels",
")",
"{",
"$",
"this",
"->",
"_workerChannels",
"=",
"new",
"WorkerChannelList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'workspaceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_workerChannels",
";",
"}"
] | Access the workerChannels
@return \Twilio\Rest\Taskrouter\V1\Workspace\Worker\WorkerChannelList | [
"Access",
"the",
"workerChannels"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/WorkerContext.php#L196-L206 |
twilio/twilio-php | Twilio/Rest/Sync/V1/ServiceContext.php | ServiceContext.getSyncStreams | protected function getSyncStreams() {
if (!$this->_syncStreams) {
$this->_syncStreams = new SyncStreamList($this->version, $this->solution['sid']);
}
return $this->_syncStreams;
} | php | protected function getSyncStreams() {
if (!$this->_syncStreams) {
$this->_syncStreams = new SyncStreamList($this->version, $this->solution['sid']);
}
return $this->_syncStreams;
} | [
"protected",
"function",
"getSyncStreams",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"_syncStreams",
")",
"{",
"$",
"this",
"->",
"_syncStreams",
"=",
"new",
"SyncStreamList",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'sid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"_syncStreams",
";",
"}"
] | Access the syncStreams
@return \Twilio\Rest\Sync\V1\Service\SyncStreamList | [
"Access",
"the",
"syncStreams"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Sync/V1/ServiceContext.php#L156-L162 |
twilio/twilio-php | Twilio/Rest/Accounts/V1/Credential/AwsInstance.php | AwsInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new AwsContext($this->version, $this->solution['sid']);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new AwsContext($this->version, $this->solution['sid']);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"AwsContext",
"(",
"$",
"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\AwsContext Context for this
AwsInstance | [
"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/AwsInstance.php#L59-L65 |
twilio/twilio-php | Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsInstance.php | WorkflowCumulativeStatisticsInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new WorkflowCumulativeStatisticsContext(
$this->version,
$this->solution['workspaceSid'],
$this->solution['workflowSid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new WorkflowCumulativeStatisticsContext(
$this->version,
$this->solution['workspaceSid'],
$this->solution['workflowSid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"WorkflowCumulativeStatisticsContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'workspaceSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'workflowSid'",
"]",
")",
";",
"}",
"return",
"$",
"this",
"->",
"context",
";",
"}"
] | Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context
@return \Twilio\Rest\Taskrouter\V1\Workspace\Workflow\WorkflowCumulativeStatisticsContext Context for this
WorkflowCumulativeStatisticsInstance | [
"Generate",
"an",
"instance",
"context",
"for",
"the",
"instance",
"the",
"context",
"is",
"capable",
"of",
"performing",
"various",
"actions",
".",
"All",
"instance",
"actions",
"are",
"proxied",
"to",
"the",
"context"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsInstance.php#L92-L102 |
twilio/twilio-php | Twilio/Rest/Taskrouter/V1/Workspace/ActivityInstance.php | ActivityInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new ActivityContext(
$this->version,
$this->solution['workspaceSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new ActivityContext(
$this->version,
$this->solution['workspaceSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"ActivityContext",
"(",
"$",
"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\ActivityContext Context for
this
ActivityInstance | [
"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/ActivityInstance.php#L66-L76 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/MessageList.php | MessageList.create | public function create($to, $options = array()) {
$options = new Values($options);
$data = Values::of(array(
'To' => $to,
'From' => $options['from'],
'MessagingServiceSid' => $options['messagingServiceSid'],
'Body' => $options['body'],
'MediaUrl' => Serialize::map($options['mediaUrl'], function($e) { return $e; }),
'StatusCallback' => $options['statusCallback'],
'ApplicationSid' => $options['applicationSid'],
'MaxPrice' => $options['maxPrice'],
'ProvideFeedback' => Serialize::booleanToString($options['provideFeedback']),
'ValidityPeriod' => $options['validityPeriod'],
'ForceDelivery' => Serialize::booleanToString($options['forceDelivery']),
'SmartEncoded' => Serialize::booleanToString($options['smartEncoded']),
'InteractiveData' => $options['interactiveData'],
'ForceOptIn' => Serialize::booleanToString($options['forceOptIn']),
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new MessageInstance($this->version, $payload, $this->solution['accountSid']);
} | php | public function create($to, $options = array()) {
$options = new Values($options);
$data = Values::of(array(
'To' => $to,
'From' => $options['from'],
'MessagingServiceSid' => $options['messagingServiceSid'],
'Body' => $options['body'],
'MediaUrl' => Serialize::map($options['mediaUrl'], function($e) { return $e; }),
'StatusCallback' => $options['statusCallback'],
'ApplicationSid' => $options['applicationSid'],
'MaxPrice' => $options['maxPrice'],
'ProvideFeedback' => Serialize::booleanToString($options['provideFeedback']),
'ValidityPeriod' => $options['validityPeriod'],
'ForceDelivery' => Serialize::booleanToString($options['forceDelivery']),
'SmartEncoded' => Serialize::booleanToString($options['smartEncoded']),
'InteractiveData' => $options['interactiveData'],
'ForceOptIn' => Serialize::booleanToString($options['forceOptIn']),
));
$payload = $this->version->create(
'POST',
$this->uri,
array(),
$data
);
return new MessageInstance($this->version, $payload, $this->solution['accountSid']);
} | [
"public",
"function",
"create",
"(",
"$",
"to",
",",
"$",
"options",
"=",
"array",
"(",
")",
")",
"{",
"$",
"options",
"=",
"new",
"Values",
"(",
"$",
"options",
")",
";",
"$",
"data",
"=",
"Values",
"::",
"of",
"(",
"array",
"(",
"'To'",
"=>",
"$",
"to",
",",
"'From'",
"=>",
"$",
"options",
"[",
"'from'",
"]",
",",
"'MessagingServiceSid'",
"=>",
"$",
"options",
"[",
"'messagingServiceSid'",
"]",
",",
"'Body'",
"=>",
"$",
"options",
"[",
"'body'",
"]",
",",
"'MediaUrl'",
"=>",
"Serialize",
"::",
"map",
"(",
"$",
"options",
"[",
"'mediaUrl'",
"]",
",",
"function",
"(",
"$",
"e",
")",
"{",
"return",
"$",
"e",
";",
"}",
")",
",",
"'StatusCallback'",
"=>",
"$",
"options",
"[",
"'statusCallback'",
"]",
",",
"'ApplicationSid'",
"=>",
"$",
"options",
"[",
"'applicationSid'",
"]",
",",
"'MaxPrice'",
"=>",
"$",
"options",
"[",
"'maxPrice'",
"]",
",",
"'ProvideFeedback'",
"=>",
"Serialize",
"::",
"booleanToString",
"(",
"$",
"options",
"[",
"'provideFeedback'",
"]",
")",
",",
"'ValidityPeriod'",
"=>",
"$",
"options",
"[",
"'validityPeriod'",
"]",
",",
"'ForceDelivery'",
"=>",
"Serialize",
"::",
"booleanToString",
"(",
"$",
"options",
"[",
"'forceDelivery'",
"]",
")",
",",
"'SmartEncoded'",
"=>",
"Serialize",
"::",
"booleanToString",
"(",
"$",
"options",
"[",
"'smartEncoded'",
"]",
")",
",",
"'InteractiveData'",
"=>",
"$",
"options",
"[",
"'interactiveData'",
"]",
",",
"'ForceOptIn'",
"=>",
"Serialize",
"::",
"booleanToString",
"(",
"$",
"options",
"[",
"'forceOptIn'",
"]",
")",
",",
")",
")",
";",
"$",
"payload",
"=",
"$",
"this",
"->",
"version",
"->",
"create",
"(",
"'POST'",
",",
"$",
"this",
"->",
"uri",
",",
"array",
"(",
")",
",",
"$",
"data",
")",
";",
"return",
"new",
"MessageInstance",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"payload",
",",
"$",
"this",
"->",
"solution",
"[",
"'accountSid'",
"]",
")",
";",
"}"
] | Create a new MessageInstance
@param string $to The destination phone number
@param array|Options $options Optional Arguments
@return MessageInstance Newly created MessageInstance
@throws TwilioException When an HTTP error occurs. | [
"Create",
"a",
"new",
"MessageInstance"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Rest/Api/V2010/Account/MessageList.php#L43-L71 |
twilio/twilio-php | Twilio/Jwt/Client/ScopeURI.php | ScopeURI.parse | public static function parse($uri) {
if (strpos($uri, 'scope:') !== 0) {
throw new \UnexpectedValueException(
'Not a scope URI according to scheme');
}
$parts = explode('?', $uri, 1);
$params = null;
if (count($parts) > 1) {
parse_str($parts[1], $params);
}
$parts = explode(':', $parts[0], 2);
if (count($parts) != 3) {
throw new \UnexpectedValueException(
'Not enough parts for scope URI');
}
list($scheme, $service, $privilege) = $parts;
return new ScopeURI($service, $privilege, $params);
} | php | public static function parse($uri) {
if (strpos($uri, 'scope:') !== 0) {
throw new \UnexpectedValueException(
'Not a scope URI according to scheme');
}
$parts = explode('?', $uri, 1);
$params = null;
if (count($parts) > 1) {
parse_str($parts[1], $params);
}
$parts = explode(':', $parts[0], 2);
if (count($parts) != 3) {
throw new \UnexpectedValueException(
'Not enough parts for scope URI');
}
list($scheme, $service, $privilege) = $parts;
return new ScopeURI($service, $privilege, $params);
} | [
"public",
"static",
"function",
"parse",
"(",
"$",
"uri",
")",
"{",
"if",
"(",
"strpos",
"(",
"$",
"uri",
",",
"'scope:'",
")",
"!==",
"0",
")",
"{",
"throw",
"new",
"\\",
"UnexpectedValueException",
"(",
"'Not a scope URI according to scheme'",
")",
";",
"}",
"$",
"parts",
"=",
"explode",
"(",
"'?'",
",",
"$",
"uri",
",",
"1",
")",
";",
"$",
"params",
"=",
"null",
";",
"if",
"(",
"count",
"(",
"$",
"parts",
")",
">",
"1",
")",
"{",
"parse_str",
"(",
"$",
"parts",
"[",
"1",
"]",
",",
"$",
"params",
")",
";",
"}",
"$",
"parts",
"=",
"explode",
"(",
"':'",
",",
"$",
"parts",
"[",
"0",
"]",
",",
"2",
")",
";",
"if",
"(",
"count",
"(",
"$",
"parts",
")",
"!=",
"3",
")",
"{",
"throw",
"new",
"\\",
"UnexpectedValueException",
"(",
"'Not enough parts for scope URI'",
")",
";",
"}",
"list",
"(",
"$",
"scheme",
",",
"$",
"service",
",",
"$",
"privilege",
")",
"=",
"$",
"parts",
";",
"return",
"new",
"ScopeURI",
"(",
"$",
"service",
",",
"$",
"privilege",
",",
"$",
"params",
")",
";",
"}"
] | Parse a scope URI into a ScopeURI object
@param string $uri The scope URI
@return ScopeURI The parsed scope uri
@throws \UnexpectedValueException | [
"Parse",
"a",
"scope",
"URI",
"into",
"a",
"ScopeURI",
"object"
] | train | https://github.com/twilio/twilio-php/blob/58a8322c5a8ce2ff7d68cd16ff56dc8ab44c168f/Twilio/Jwt/Client/ScopeURI.php#L44-L66 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressInstance.php | IpAddressInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new IpAddressContext(
$this->version,
$this->solution['accountSid'],
$this->solution['ipAccessControlListSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new IpAddressContext(
$this->version,
$this->solution['accountSid'],
$this->solution['ipAccessControlListSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"IpAddressContext",
"(",
"$",
"this",
"->",
"version",
",",
"$",
"this",
"->",
"solution",
"[",
"'accountSid'",
"]",
",",
"$",
"this",
"->",
"solution",
"[",
"'ipAccessControlListSid'",
"]",
",",
"$",
"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\IpAccessControlList\IpAddressContext Context for this
IpAddressInstance | [
"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/IpAccessControlList/IpAddressInstance.php#L74-L85 |
twilio/twilio-php | Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingInstance.php | AuthCallsIpAccessControlListMappingInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new AuthCallsIpAccessControlListMappingContext(
$this->version,
$this->solution['accountSid'],
$this->solution['domainSid'],
$this->solution['sid']
);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new AuthCallsIpAccessControlListMappingContext(
$this->version,
$this->solution['accountSid'],
$this->solution['domainSid'],
$this->solution['sid']
);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"AuthCallsIpAccessControlListMappingContext",
"(",
"$",
"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\AuthCallsIpAccessControlListMappingContext Context for this
AuthCallsIpAccessControlListMappingInstance | [
"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/AuthCallsIpAccessControlListMappingInstance.php#L62-L73 |
twilio/twilio-php | Twilio/Rest/Proxy/V1/ServiceInstance.php | ServiceInstance.proxy | protected function proxy() {
if (!$this->context) {
$this->context = new ServiceContext($this->version, $this->solution['sid']);
}
return $this->context;
} | php | protected function proxy() {
if (!$this->context) {
$this->context = new ServiceContext($this->version, $this->solution['sid']);
}
return $this->context;
} | [
"protected",
"function",
"proxy",
"(",
")",
"{",
"if",
"(",
"!",
"$",
"this",
"->",
"context",
")",
"{",
"$",
"this",
"->",
"context",
"=",
"new",
"ServiceContext",
"(",
"$",
"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\Proxy\V1\ServiceContext Context for this ServiceInstance | [
"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/Proxy/V1/ServiceInstance.php#L80-L86 |