Completed
Push — master ( e530dd...3592ed )
by Guillaume
05:58
created

UrlInfo::getMetricUuid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the hogosha-monitor package
5
 *
6
 * Copyright (c) 2016 Guillaume Cavana
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * Feel free to edit as you please, and have fun.
12
 *
13
 * @author Guillaume Cavana <[email protected]>
14
 */
15
16
namespace Hogosha\Monitor\Model;
17
18
/**
19
 * @author Guillaume Cavana <[email protected]>
20
 */
21
class UrlInfo
22
{
23
    protected $name;
24
    protected $url;
25
    protected $method;
26
    protected $headers;
27
    protected $timeout;
28
    protected $expectedStatus;
29
    protected $metricUuid;
30
31
    /**
32
     * Constructor.
33
     *
34
     * @param string $name
35
     * @param string $url
36
     * @param string $method
37
     * @param array  $headers
38
     * @param int    $timeout
39
     * @param int    $expectedStatus
40
     * @param string $metricUuid
41
     */
42
    public function __construct(
43
        $name,
44
        $url,
45
        $method,
46
        array $headers,
47
        $timeout,
48
        $expectedStatus,
49
        $metricUuid
50
    ) {
51
        $this->name = $name;
52
        $this->url = $url;
53
        $this->method = $method;
54
        $this->headers = $headers;
55
        $this->timeout = $timeout;
56
        $this->expectedStatus = $expectedStatus;
57
        $this->metricUuid = $metricUuid;
58
    }
59
60
    /**
61
     * getName.
62
     *
63
     * @return string
64
     */
65
    public function getName()
66
    {
67
        return $this->name;
68
    }
69
70
    /**
71
     * getUrl.
72
     *
73
     * @return string
74
     */
75
    public function getUrl()
76
    {
77
        return $this->url;
78
    }
79
80
    /**
81
     * getMethod.
82
     *
83
     * @return string
84
     */
85
    public function getMethod()
86
    {
87
        return $this->method;
88
    }
89
90
    /**
91
     * getHeaders.
92
     *
93
     * @return string
94
     */
95
    public function getHeaders()
96
    {
97
        return $this->headers;
98
    }
99
100
    /**
101
     * getTimeOut.
102
     *
103
     * @return int
104
     */
105
    public function getTimeOut()
106
    {
107
        return $this->timeout;
108
    }
109
110
    /**
111
     * getTimeOut.
112
     *
113
     * @return int
114
     */
115
    public function getExpectedStatus()
116
    {
117
        return $this->expectedStatus;
118
    }
119
120
    /**
121
     * getMetricUuid.
122
     *
123
     * @return string
124
     */
125
    public function getMetricUuid()
126
    {
127
        return $this->metricUuid;
128
    }
129
}
130