JsonRpcAdapter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A adaptResponse() 0 6 1
1
<?php
2
/**
3
 * This file is part of the Betfair library.
4
 *
5
 * (c) Daniele D'Angeli <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Betfair\Adapter;
11
12
class JsonRpcAdapter implements AdapterInterface
13
{
14
    public function adaptResponse($response)
15
    {
16
        $data = json_decode($response, true);
17
        $result = json_encode($data[0]['result']);
18
        return $result;
19
    }
20
}
21