for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Betfair library.
*
* (c) Daniele D'Angeli <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Betfair\Adapter;
class ArrayRpcAdapter implements AdapterInterface
{
public function adaptResponse($response)
$data = json_decode($response, true);
if (isset($data['result'])){
return $data['result'];
}
if (isset($data['error'])){
return $data['error'];