Completed
Pull Request — master (#128)
by Fabien
10:52
created

Profile   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 86
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 86
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getResponse() 0 4 1
A setResponse() 0 4 1
A getException() 0 4 1
A setException() 0 4 1
A getPlugin() 0 4 1
A setPlugin() 0 4 1
A getRequest() 0 4 1
A setRequest() 0 4 1
1
<?php
2
3
namespace Http\HttplugBundle\Collector;
4
5
use Http\Client\Common\Plugin;
6
use Http\Client\Exception;
7
use Psr\Http\Message\RequestInterface;
8
use Psr\Http\Message\ResponseInterface;
9
10
class Profile
11
{
12
    /**
13
     * @var Plugin
14
     */
15
    private $plugin;
16
17
    /**
18
     * @var RequestInterface
19
     */
20
    private $request;
21
22
    /**
23
     * @var ResponseInterface
24
     */
25
    private $response;
26
27
    /**
28
     * @var Exception
29
     */
30
    private $exception;
31
32
    /**
33
     * @return Plugin
34
     */
35
    public function getPlugin()
36
    {
37
        return $this->plugin;
38
    }
39
40
    /**
41
     * @param Plugin $plugin
42
     */
43
    public function setPlugin(Plugin $plugin)
44
    {
45
        $this->plugin = $plugin;
46
    }
47
48
    /**
49
     * @return RequestInterface
50
     */
51
    public function getRequest()
52
    {
53
        return $this->request;
54
    }
55
56
    /**
57
     * @param RequestInterface $request
58
     */
59
    public function setRequest(RequestInterface $request)
60
    {
61
        $this->request = $request;
62
    }
63
64
    /**
65
     * @return ResponseInterface
66
     */
67
    public function getResponse()
68
    {
69
        return $this->response;
70
    }
71
72
    /**
73
     * @param ResponseInterface $response
74
     */
75
    public function setResponse(ResponseInterface $response)
76
    {
77
        $this->response = $response;
78
    }
79
80
    /**
81
     * @return Exception
82
     */
83
    public function getException()
84
    {
85
        return $this->exception;
86
    }
87
88
    /**
89
     * @param Exception $exception
90
     */
91
    public function setException(Exception $exception)
92
    {
93
        $this->exception = $exception;
94
    }
95
}
96