Completed
Pull Request — master (#98)
by Christopher
05:13
created

Link   A

Complexity

Total Complexity 16

Size/Duplication

Total Lines 219
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 16
lcom 0
cbo 1
dl 0
loc 219
rs 10
c 0
b 0
f 0

16 Methods

Rating   Name   Duplication   Size   Complexity  
A getBase() 0 4 1
A setBase() 0 5 1
A getLang() 0 4 1
A setLang() 0 5 1
A getHref() 0 4 1
A setHref() 0 5 1
A getRel() 0 4 1
A setRel() 0 5 1
A getType() 0 4 1
A setType() 0 5 1
A getHreflang() 0 4 1
A setHreflang() 0 5 1
A getTitle() 0 4 1
A setTitle() 0 5 1
A getLength() 0 4 1
A setLength() 0 5 1
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\Atom;
4
5
/**
6
 * Class representing Link
7
 */
8
class Link extends UndefinedContentType
9
{
10
11
    /**
12
     * @property string $base
13
     */
14
    private $base = null;
15
16
    /**
17
     * @property string $lang
18
     */
19
    private $lang = null;
20
21
    /**
22
     * @property mixed $href
23
     */
24
    private $href = null;
25
26
    /**
27
     * @property mixed $rel
28
     */
29
    private $rel = null;
30
31
    /**
32
     * @property string $type
33
     */
34
    private $type = null;
35
36
    /**
37
     * @property string $hreflang
38
     */
39
    private $hreflang = null;
40
41
    /**
42
     * @property mixed $title
43
     */
44
    private $title = null;
45
46
    /**
47
     * @property mixed $length
48
     */
49
    private $length = null;
50
51
    /**
52
     * Gets as base
53
     *
54
     * @return string
55
     */
56
    public function getBase()
57
    {
58
        return $this->base;
59
    }
60
61
    /**
62
     * Sets a new base
63
     *
64
     * @param string $base
65
     * @return self
66
     */
67
    public function setBase($base)
68
    {
69
        $this->base = $base;
70
        return $this;
71
    }
72
73
    /**
74
     * Gets as lang
75
     *
76
     * @return string
77
     */
78
    public function getLang()
79
    {
80
        return $this->lang;
81
    }
82
83
    /**
84
     * Sets a new lang
85
     *
86
     * @param string $lang
87
     * @return self
88
     */
89
    public function setLang($lang)
90
    {
91
        $this->lang = $lang;
92
        return $this;
93
    }
94
95
    /**
96
     * Gets as href
97
     *
98
     * @return mixed
99
     */
100
    public function getHref()
101
    {
102
        return $this->href;
103
    }
104
105
    /**
106
     * Sets a new href
107
     *
108
     * @param mixed $href
109
     * @return self
110
     */
111
    public function setHref($href)
112
    {
113
        $this->href = $href;
114
        return $this;
115
    }
116
117
    /**
118
     * Gets as rel
119
     *
120
     * @return mixed
121
     */
122
    public function getRel()
123
    {
124
        return $this->rel;
125
    }
126
127
    /**
128
     * Sets a new rel
129
     *
130
     * @param mixed $rel
131
     * @return self
132
     */
133
    public function setRel($rel)
134
    {
135
        $this->rel = $rel;
136
        return $this;
137
    }
138
139
    /**
140
     * Gets as type
141
     *
142
     * @return string
143
     */
144
    public function getType()
145
    {
146
        return $this->type;
147
    }
148
149
    /**
150
     * Sets a new type
151
     *
152
     * @param string $type
153
     * @return self
154
     */
155
    public function setType($type)
156
    {
157
        $this->type = $type;
158
        return $this;
159
    }
160
161
    /**
162
     * Gets as hreflang
163
     *
164
     * @return string
165
     */
166
    public function getHreflang()
167
    {
168
        return $this->hreflang;
169
    }
170
171
    /**
172
     * Sets a new hreflang
173
     *
174
     * @param string $hreflang
175
     * @return self
176
     */
177
    public function setHreflang($hreflang)
178
    {
179
        $this->hreflang = $hreflang;
180
        return $this;
181
    }
182
183
    /**
184
     * Gets as title
185
     *
186
     * @return mixed
187
     */
188
    public function getTitle()
189
    {
190
        return $this->title;
191
    }
192
193
    /**
194
     * Sets a new title
195
     *
196
     * @param mixed $title
197
     * @return self
198
     */
199
    public function setTitle($title)
200
    {
201
        $this->title = $title;
202
        return $this;
203
    }
204
205
    /**
206
     * Gets as length
207
     *
208
     * @return mixed
209
     */
210
    public function getLength()
211
    {
212
        return $this->length;
213
    }
214
215
    /**
216
     * Sets a new length
217
     *
218
     * @param mixed $length
219
     * @return self
220
     */
221
    public function setLength($length)
222
    {
223
        $this->length = $length;
224
        return $this;
225
    }
226
}
227