PostClientRequestEvent::getResponse()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
namespace Aeq\Hal\Client\Event;
3
4
use Aeq\Hal\Event\EventInterface;
5
use Psr\Http\Message\ResponseInterface;
6
7
class PostClientRequestEvent implements EventInterface
8
{
9
    /**
10
     * @var ResponseInterface
11
     */
12
    private $response;
13
14
    /**
15
     * @param ResponseInterface $response
16
     */
17 4
    public function __construct(ResponseInterface $response)
18
    {
19 4
        $this->response = $response;
20 4
    }
21
22
    /**
23
     * @return ResponseInterface
24
     */
25
    public function getResponse()
26
    {
27
        return $this->response;
28
    }
29
}
30