Completed
Push — master ( 483143...6b44c3 )
by Guillaume
05:17
created

UrlInfo::getHeaders()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Hogosha\Monitor\Model;
4
5
/**
6
 * @author Guillaume Cavana <[email protected]>
7
 */
8
class UrlInfo
9
{
10
    protected $name;
11
    protected $url;
12
    protected $method;
13
    protected $headers;
14
    protected $timeout;
15
    protected $expectedStatus;
16
17
    /**
18
     * Constructor.
19
     *
20
     * @param string $name
21
     * @param string $url
22
     * @param string $method
23
     * @param array  $headers
24
     * @param int    $timeout
25
     * @param int    $expectedStatus
26
     */
27
    public function __construct(
28
        $name,
29
        $url,
30
        $method,
31
        array $headers,
32
        $timeout,
33
        $expectedStatus
34
    ) {
35
        $this->name = $name;
36
        $this->url = $url;
37
        $this->method = $method;
38
        $this->headers = $headers;
39
        $this->timeout = $timeout;
40
        $this->expectedStatus = $expectedStatus;
41
    }
42
43
    /**
44
     * getName.
45
     *
46
     * @return string
47
     */
48
    public function getName()
49
    {
50
        return $this->name;
51
    }
52
53
    /**
54
     * getUrl.
55
     *
56
     * @return string
57
     */
58
    public function getUrl()
59
    {
60
        return $this->url;
61
    }
62
63
    /**
64
     * getMethod.
65
     *
66
     * @return string
67
     */
68
    public function getMethod()
69
    {
70
        return $this->method;
71
    }
72
73
    /**
74
     * getHeaders.
75
     *
76
     * @return string
77
     */
78
    public function getHeaders()
79
    {
80
        return $this->headers;
81
    }
82
83
    /**
84
     * getTimeOut.
85
     *
86
     * @return int
87
     */
88
    public function getTimeOut()
89
    {
90
        return $this->timeout;
91
    }
92
93
    /**
94
     * getTimeOut.
95
     *
96
     * @return int
97
     */
98
    public function getExpectedStatus()
99
    {
100
        return $this->expectedStatus;
101
    }
102
}
103