/var/www/hkosl.com/b2b2c/webadmin/libraies/twilio/sdk/Services/Twilio/TaskRouterListResource.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

abstract class Services_Twilio_TaskRouterListResource extends Services_Twilio_NextGenListResource {

    public function 
__construct($client$uri) {
        
$name $this->getResourceName(true);
        
/*
         * By default trim the 's' from the end of the list name to get the
         * instance name (ex Accounts -> Account). This behavior can be
         * overridden by child classes if the rule doesn't work.
         */
        
if (!isset($this->instance_name)) {
            
$this->instance_name "Services_Twilio_Rest_TaskRouter_" rtrim($name's');
        }

        
parent::__construct($client$uri);
    }

    protected function 
setupSubresource($name) {
        
$constantized ucfirst(self::camelize($name));
        
$type get_class($this) . $constantized;
        
$this->subresources[$name] = new $type(
            
$this->client$this->uri "/"$constantized
        
);
    }
}