JournalEntry   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 54
ccs 14
cts 14
cp 1
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getRequest() 0 4 1
A setRequest() 0 4 1
A getResponse() 0 4 1
A setResponse() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Ivory Http Adapter package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\HttpAdapter\Event\History;
13
14
use Ivory\HttpAdapter\Message\InternalRequestInterface;
15
use Ivory\HttpAdapter\Message\ResponseInterface;
16
17
/**
18
 * @author GeLo <[email protected]>
19
 */
20
class JournalEntry implements JournalEntryInterface
21
{
22
    /**
23
     * @var \Ivory\HttpAdapter\Message\InternalRequestInterface
24
     */
25
    private $request;
26
27
    /**
28
     * @var \Ivory\HttpAdapter\Message\ResponseInterface
29
     */
30
    private $response;
31
32
    /**
33
     * @param InternalRequestInterface $request
34
     * @param ResponseInterface        $response
35
     */
36 36
    public function __construct(InternalRequestInterface $request, ResponseInterface $response)
37
    {
38 36
        $this->setRequest($request);
39 36
        $this->setResponse($response);
40 36
    }
41
42
    /**
43
     * {@inheritdoc}
44
     */
45 36
    public function getRequest()
46
    {
47 36
        return $this->request;
48
    }
49
50
    /**
51
     * {@inheritdoc}
52
     */
53 36
    public function setRequest(InternalRequestInterface $request)
54
    {
55 36
        $this->request = $request;
56 36
    }
57
58
    /**
59
     * {@inheritdoc}
60
     */
61 27
    public function getResponse()
62
    {
63 27
        return $this->response;
64
    }
65
66
    /**
67
     * {@inheritdoc}
68
     */
69 36
    public function setResponse(ResponseInterface $response)
70
    {
71 36
        $this->response = $response;
72 36
    }
73
}
74