for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Tarantool Queue package.
*
* (c) Eugene Leonovich <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tarantool\Queue;
use Tarantool\Client\Client;
class ClientAdapter
{
private $client;
public function __construct(Client $client)
$this->client = $client;
}
public function call($funcName, array $args = [])
$result = $this->client->call($funcName, $args);
return isset($result->getData()[0][0]) ? $result->getData() : [$result->getData()];