Completed
Pull Request — master (#128)
by Fabien
15:48 queued 05:43
created

Profile::isFailed()   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
/**
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