mirror of
https://github.com/nullthoughts/laravel-data-sync.git
synced 2026-02-13 23:52:58 +00:00
35 lines
669 B
PHP
35 lines
669 B
PHP
<?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
|
|
]
|
|
];
|
|
}
|
|
} |