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

Content   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 111
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 111
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
A setType() 0 5 1
A getBase() 0 4 1
A setBase() 0 5 1
A getLang() 0 4 1
A setLang() 0 5 1
A getSrc() 0 4 1
A setSrc() 0 5 1
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\Atom;
4
5
/**
6
 * Class representing Content
7
 */
8
class Content
9
{
10
11
    /**
12
     * @property string $type
13
     */
14
    private $type = null;
15
16
    /**
17
     * @property string $base
18
     */
19
    private $base = null;
20
21
    /**
22
     * @property string $lang
23
     */
24
    private $lang = null;
25
26
    /**
27
     * @property mixed $src
28
     */
29
    private $src = null;
30
31
    /**
32
     * Gets as type
33
     *
34
     * @return string
35
     */
36
    public function getType()
37
    {
38
        return $this->type;
39
    }
40
41
    /**
42
     * Sets a new type
43
     *
44
     * @param string $type
45
     * @return self
46
     */
47
    public function setType($type)
48
    {
49
        $this->type = $type;
50
        return $this;
51
    }
52
53
    /**
54
     * Gets as base
55
     *
56
     * @return string
57
     */
58
    public function getBase()
59
    {
60
        return $this->base;
61
    }
62
63
    /**
64
     * Sets a new base
65
     *
66
     * @param string $base
67
     * @return self
68
     */
69
    public function setBase($base)
70
    {
71
        $this->base = $base;
72
        return $this;
73
    }
74
75
    /**
76
     * Gets as lang
77
     *
78
     * @return string
79
     */
80
    public function getLang()
81
    {
82
        return $this->lang;
83
    }
84
85
    /**
86
     * Sets a new lang
87
     *
88
     * @param string $lang
89
     * @return self
90
     */
91
    public function setLang($lang)
92
    {
93
        $this->lang = $lang;
94
        return $this;
95
    }
96
97
    /**
98
     * Gets as src
99
     *
100
     * @return mixed
101
     */
102
    public function getSrc()
103
    {
104
        return $this->src;
105
    }
106
107
    /**
108
     * Sets a new src
109
     *
110
     * @param mixed $src
111
     * @return self
112
     */
113
    public function setSrc($src)
114
    {
115
        $this->src = $src;
116
        return $this;
117
    }
118
}
119