patashala/application/libraries/twilio_library/Twilio/TaskRouterInstanceResource.php
Vivek a53135a78d Added based code
Added base code to the repo
2024-02-07 20:19:28 +05:30

16 lines
485 B
PHP
Executable File

<?php
abstract class Services_Twilio_TaskRouterInstanceResource extends Services_Twilio_NextGenInstanceResource {
protected function setupSubresources() {
foreach (func_get_args() as $name) {
$constantized = ucfirst(self::camelize($name));
$type = "Services_Twilio_Rest_TaskRouter_" . $constantized;
$this->subresources[$name] = new $type(
$this->client, $this->uri . "/$constantized"
);
}
}
}