diff --git a/src/Dummy.php b/src/Dummy.php index 7961436..4b3d98b 100644 --- a/src/Dummy.php +++ b/src/Dummy.php @@ -7,7 +7,7 @@ class Dummy implements TwilioInterface * @param string $to * @param string $message * - * @return \Services_Twilio_Rest_Call|void + * @return \Twilio\Rest\Api\V2010\Account\MessageInstance|void */ public function message($to, $message) { @@ -17,7 +17,7 @@ public function message($to, $message) * @param string $to * @param string|callable $message * - * @return \Services_Twilio_Rest_Call|void + * @return \Twilio\Rest\Api\V2010\Account\CallInstance|void */ public function call($to, $message) { diff --git a/src/LoggingDecorator.php b/src/LoggingDecorator.php index a5758c3..a7576f2 100644 --- a/src/LoggingDecorator.php +++ b/src/LoggingDecorator.php @@ -29,7 +29,7 @@ public function __construct(LoggerInterface $logger, TwilioInterface $wrapped) * @param string $to * @param string $message * - * @return \Services_Twilio_Rest_Message + * @return \Twilio\Rest\Api\V2010\Account\MessageInstance */ public function message($to, $message) { @@ -42,7 +42,7 @@ public function message($to, $message) * @param string $to * @param string|callable $message * - * @return \Services_Twilio_Rest_Call + * @return \Twilio\Rest\Api\V2010\Account\CallInstance */ public function call($to, $message) { diff --git a/src/Manager.php b/src/Manager.php index 1354c8f..004079a 100644 --- a/src/Manager.php +++ b/src/Manager.php @@ -45,7 +45,7 @@ public function from($connection) * @param string $to * @param string $message * - * @return \Services_Twilio_Rest_Message + * @return \Twilio\Rest\Api\V2010\Account\MessageInstance */ public function message($to, $message) { @@ -56,7 +56,7 @@ public function message($to, $message) * @param string $to * @param string|callable $message * - * @return \Services_Twilio_Rest_Call + * @return \Twilio\Rest\Api\V2010\Account\CallInstance */ public function call($to, $message) { diff --git a/src/Twilio.php b/src/Twilio.php index 0e901ab..a31a412 100644 --- a/src/Twilio.php +++ b/src/Twilio.php @@ -73,6 +73,7 @@ public function message($to, $message, $mediaUrls = null, array $params = []) /** * @param string $to * @param string|callable $message + * @param array $params * * @link https://www.twilio.com/docs/api/voice/making-calls Documentation * diff --git a/src/TwilioInterface.php b/src/TwilioInterface.php index 2374190..182a537 100644 --- a/src/TwilioInterface.php +++ b/src/TwilioInterface.php @@ -7,7 +7,7 @@ interface TwilioInterface * @param string $to * @param string $message * - * @return \Services_Twilio_Rest_Message + * @return \Twilio\Rest\Api\V2010\Account\MessageInstance */ public function message($to, $message); @@ -15,7 +15,7 @@ public function message($to, $message); * @param string $to * @param string|callable $message * - * @return \Services_Twilio_Rest_Call + * @return \Twilio\Rest\Api\V2010\Account\CallInstance */ public function call($to, $message); } diff --git a/tests/TwilioCallCommandTest.php b/tests/TwilioCallCommandTest.php index 27aaa5e..bbfc997 100644 --- a/tests/TwilioCallCommandTest.php +++ b/tests/TwilioCallCommandTest.php @@ -2,7 +2,6 @@ namespace Aloha\Twilio\Tests; use Aloha\Twilio\Commands\TwilioCallCommand; -use Aloha\Twilio\Twilio; use PHPUnit_Framework_TestCase; class TwilioCallCommandTest extends PHPUnit_Framework_TestCase