PostClientRequestEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 60%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
ccs 3
cts 5
cp 0.6
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getResponse() 0 4 1
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