SIPListResource.php 386 B

1234567891011121314
  1. <?php
  2. /**
  3. * This subclass of ListResource is used solely to update
  4. * the URI for sip resources.
  5. */
  6. abstract class Services_Twilio_SIPListResource extends Services_Twilio_ListResource {
  7. public function __construct($client, $uri) {
  8. // Rename all /Sip/ uris to /SIP/
  9. $uri = preg_replace("#/Sip#", "/SIP", $uri);
  10. parent::__construct($client, $uri);
  11. }
  12. }