Completed
Pull Request — master (#128)
by Fabien
07:03
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 getPlugin() 0 4 1
A setPlugin() 0 4 1
A getRequest() 0 4 1
A setRequest() 0 4 1
A isFailed() 0 4 1
A setFailed() 0 4 1
1
<?php
2
3
namespace Http\HttplugBundle\Collector;
4
5
/**
6
 * @author Fabien Bourigault <[email protected]>
7
 *
8
 * @internal
9
 */
10
final class Profile
11
{
12
    /**
13
     * @var string
14
     */
15
    private $plugin;
16
17
    /**
18
     * @var string
19
     */
20
    private $request;
21
22
    /**
23
     * @var string
24
     */
25
    private $response;
26
27
    /**
28
     * @var bool
29
     */
30
    private $failed = false;
31
32
    /**
33
     * @return string
34
     */
35
    public function getPlugin()
36
    {
37
        return $this->plugin;
38
    }
39
40
    /**
41
     * @param string $plugin
42
     */
43
    public function setPlugin(string $plugin)
44
    {
45
        $this->plugin = $plugin;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getRequest()
52
    {
53
        return $this->request;
54
    }
55
56
    /**
57
     * @param string $request
58
     */
59
    public function setRequest($request)
60
    {
61
        $this->request = $request;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getResponse()
68
    {
69
        return $this->response;
70
    }
71
72
    /**
73
     * @param string $response
74
     */
75
    public function setResponse($response)
76
    {
77
        $this->response = $response;
78
    }
79
80
    /**
81
     * @return bool
82
     */
83
    public function isFailed()
84
    {
85
        return $this->failed;
86
    }
87
88
    /**
89
     * @param bool $failed
90
     */
91
    public function setFailed($failed)
92
    {
93
        $this->failed = $failed;
94
    }
95
}
96