ResponseLocation::visit()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 5
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