mirror of
https://github.com/nullthoughts/laravel-data-sync.git
synced 2026-02-14 04:52:57 +00:00
Initial commit
This commit is contained in:
35
vendor/nexmo/client/src/Call/Transfer.php
vendored
Normal file
35
vendor/nexmo/client/src/Call/Transfer.php
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Nexmo Client Library for PHP
|
||||
*
|
||||
* @copyright Copyright (c) 2017 Nexmo, Inc. (http://nexmo.com)
|
||||
* @license https://github.com/Nexmo/nexmo-php/blob/master/LICENSE.txt MIT License
|
||||
*/
|
||||
|
||||
namespace Nexmo\Call;
|
||||
|
||||
|
||||
class Transfer implements \JsonSerializable
|
||||
{
|
||||
protected $urls;
|
||||
|
||||
public function __construct($urls)
|
||||
{
|
||||
if(!is_array($urls)){
|
||||
$urls = array($urls);
|
||||
}
|
||||
|
||||
$this->urls = $urls;
|
||||
}
|
||||
|
||||
function jsonSerialize()
|
||||
{
|
||||
return [
|
||||
'action' => 'transfer',
|
||||
'destination' => [
|
||||
'type' => 'ncco',
|
||||
'url' => $this->urls
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user