twilio/twilio-php — pull request #122 by dataich (2013-05-29 14:00:03+00:00)
Title: return 'static' object in Services_Twilio_Twiml::_call method

sometimes I want to override __call method for some reason. For example I always want to call say method with language option "'language' => 'ja-jp');".

```php
class Custom_Services_Twilio_Twiml extends Services_Twilio_Twiml
{

private $_sayOptions = ['voice' => 'woman', 'language' => 'ja-jp'];

public function __call($verb, array $args)
{
if ($verb === 'say') {
$args[] = $this->_sayOptions;
}

return parent::__call($verb, $args);
}
}
```