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

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