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

Stack::setResponse()   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 1
1
<?php
2
3
namespace Http\HttplugBundle\Collector;
4
5
class Stack
6
{
7
    /**
8
     * @var string
9
     */
10
    private $client;
11
12
    /**
13
     * @var Profile[]
14
     */
15
    private $profiles = [];
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 getClient()
36
    {
37
        return $this->client;
38
    }
39
40
    /**
41
     * @param string $client
42
     */
43
    public function setClient($client)
44
    {
45
        $this->client = $client;
46
    }
47
48
    /**
49
     * @param Profile $profile
50
     */
51
    public function addProfile(Profile $profile)
52
    {
53
        $this->profiles[] = $profile;
54
    }
55
56
    /**
57
     * @return Profile[]
58
     */
59
    public function getProfiles()
60
    {
61
        return $this->profiles;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getRequest()
68
    {
69
        return $this->request;
70
    }
71
72
    /**
73
     * @param string $request
74
     */
75
    public function setRequest($request)
76
    {
77
        $this->request = $request;
78
    }
79
80
    /**
81
     * @return string
82
     */
83
    public function getResponse()
84
    {
85
        return $this->response;
86
    }
87
88
    /**
89
     * @param string $response
90
     */
91
    public function setResponse($response)
92
    {
93
        $this->response = $response;
94
    }
95
96
    /**
97
     * @return bool
98
     */
99
    public function isFailed()
100
    {
101
        return $this->failed;
102
    }
103
104
    /**
105
     * @param bool $failed
106
     */
107
    public function setFailed($failed)
108
    {
109
        $this->failed = $failed;
110
    }
111
112
113
}
114