BetfairGuzzleClient   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A apiNgRequest() 0 8 1
A betfairLogin() 0 8 1
1
<?php
2
3
namespace Betfair\Client;
4
5
class BetfairGuzzleClient
6
{
7
8
    private $guzzleClient;
9
10
    public function __construct($guzzleClient)
11
    {
12
        $this->guzzleClient = $guzzleClient;
13
    }
14
15
    public function apiNgRequest(array $guzzleParameters)
16
    {
17
        $response = $this->guzzleClient->apiNgRequest(
18
            $guzzleParameters
19
        );
20
21
        return $response;
22
    }
23
24
    public function betfairLogin(array $guzzleParameters)
25
    {
26
        $response = $this->guzzleClient->betfairLogin(
27
            $guzzleParameters
28
        );
29
30
        return $response;
31
    }
32
}
33