ResponseLocation   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A visit() 0 9 1
1
<?php
2
namespace Betfair\Client\Guzzle\Location;
3
4
use GuzzleHttp\Command\CommandInterface;
5
use GuzzleHttp\Command\Guzzle\Parameter;
6
use GuzzleHttp\Command\Guzzle\ResponseLocation\AbstractLocation;
7
use GuzzleHttp\Command\Guzzle\ResponseLocation\ResponseLocationInterface;
8
use GuzzleHttp\Message\ResponseInterface;
9
10
/**
11
 * Class ResponseLocation
12
 * Return the entire Response Object
13
 * @package Betfair\Client\Guzzle\Location
14
 */
15
class ResponseLocation extends AbstractLocation implements ResponseLocationInterface
16
{
17
    public function __construct($locationName)
18
    {
19
        parent::__construct($locationName);
20
    }
21
22
    public function visit(
23
        CommandInterface $command,
24
        ResponseInterface $response,
25
        Parameter $param,
26
        &$result,
27
        array $context = []
28
    ) {
29
        $result = $response;
30
    }
31
}
32