Completed
Pull Request — master (#128)
by Fabien
08:06
created

Profile::getRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Http\HttplugBundle\Collector;
4
5
class Profile
6
{
7
    /**
8
     * @var string
9
     */
10
    private $plugin;
11
12
    /**
13
     * @var string
14
     */
15
    private $request;
16
17
    /**
18
     * @var string
19
     */
20
    private $response;
21
22
    /**
23
     * @var bool
24
     */
25
    private $failed = false;
26
27
    /**
28
     * @return string
29
     */
30
    public function getPlugin()
31
    {
32
        return $this->plugin;
33
    }
34
35
    /**
36
     * @param string $plugin
37
     */
38
    public function setPlugin(string $plugin)
39
    {
40
        $this->plugin = $plugin;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getRequest()
47
    {
48
        return $this->request;
49
    }
50
51
    /**
52
     * @param string $request
53
     */
54
    public function setRequest($request)
55
    {
56
        $this->request = $request;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getResponse()
63
    {
64
        return $this->response;
65
    }
66
67
    /**
68
     * @param string $response
69
     */
70
    public function setResponse($response)
71
    {
72
        $this->response = $response;
73
    }
74
75
    /**
76
     * @return bool
77
     */
78
    public function isFailed()
79
    {
80
        return $this->failed;
81
    }
82
83
    /**
84
     * @param bool $failed
85
     */
86
    public function setFailed($failed)
87
    {
88
        $this->failed = $failed;
89
    }
90
}
91