Passed
Push — master ( feaee9...2b3e4e )
by Alex
04:28
created

TNavigationPropertyType::setDocumentation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Importance

Changes 0
Metric Value
dl 5
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\edm;
4
5
use AlgoWeb\ODataMetadata\IsOK;
6
use AlgoWeb\ODataMetadata\MetadataV3\edm\Groups\GEmptyElementExtensibilityTrait;
7
8
/**
9
 * Class representing TNavigationPropertyType
10
 *
11
 *
12
 * XSD Type: TNavigationProperty
13
 */
14
class TNavigationPropertyType extends IsOK
15
{
16
    use GEmptyElementExtensibilityTrait;
17
    /**
18
     * @property string $name
19
     */
20
    private $name = null;
21
22
    /**
23
     * @property string $relationship
24
     */
25
    private $relationship = null;
26
27
    /**
28
     * @property string $toRole
29
     */
30
    private $toRole = null;
31
32
    /**
33
     * @property string $fromRole
34
     */
35
    private $fromRole = null;
36
37
    /**
38
     * @property string $getterAccess
39
     */
40
    private $getterAccess = null;
41
42
    /**
43
     * @property string $setterAccess
44
     */
45
    private $setterAccess = null;
46
47
    /**
48
     * Gets as name
49
     *
50
     * @return string
51
     */
52
    public function getName()
53
    {
54
        return $this->name;
55
    }
56
57
    /**
58
     * Sets a new name
59
     *
60
     * @param string $name
61
     * @return self
62
     */
63
    public function setName($name)
64
    {
65
        $this->name = $name;
66
        return $this;
67
    }
68
69
    /**
70
     * Gets as relationship
71
     *
72
     * @return string
73
     */
74
    public function getRelationship()
75
    {
76
        return $this->relationship;
77
    }
78
79
    /**
80
     * Sets a new relationship
81
     *
82
     * @param string $relationship
83
     * @return self
84
     */
85
    public function setRelationship($relationship)
86
    {
87
        $this->relationship = $relationship;
88
        return $this;
89
    }
90
91
    /**
92
     * Gets as toRole
93
     *
94
     * @return string
95
     */
96
    public function getToRole()
97
    {
98
        return $this->toRole;
99
    }
100
101
    /**
102
     * Sets a new toRole
103
     *
104
     * @param string $toRole
105
     * @return self
106
     */
107
    public function setToRole($toRole)
108
    {
109
        $this->toRole = $toRole;
110
        return $this;
111
    }
112
113
    /**
114
     * Gets as fromRole
115
     *
116
     * @return string
117
     */
118
    public function getFromRole()
119
    {
120
        return $this->fromRole;
121
    }
122
123
    /**
124
     * Sets a new fromRole
125
     *
126
     * @param string $fromRole
127
     * @return self
128
     */
129
    public function setFromRole($fromRole)
130
    {
131
        $this->fromRole = $fromRole;
132
        return $this;
133
    }
134
135
    /**
136
     * Gets as getterAccess
137
     *
138
     * @return string
139
     */
140
    public function getGetterAccess()
141
    {
142
        return $this->getterAccess;
143
    }
144
145
    /**
146
     * Sets a new getterAccess
147
     *
148
     * @param string $getterAccess
149
     * @return self
150
     */
151
    public function setGetterAccess($getterAccess)
152
    {
153
        $this->getterAccess = $getterAccess;
154
        return $this;
155
    }
156
157
    /**
158
     * Gets as setterAccess
159
     *
160
     * @return string
161
     */
162
    public function getSetterAccess()
163
    {
164
        return $this->setterAccess;
165
    }
166
167
    /**
168
     * Sets a new setterAccess
169
     *
170
     * @param string $setterAccess
171
     * @return self
172
     */
173
    public function setSetterAccess($setterAccess)
174
    {
175
        $this->setterAccess = $setterAccess;
176
        return $this;
177
    }
178
179
    public function isOK(&$msg = null)
180
    {
181
        if (!$this->isExtensibilityElementOK($msg)) {
182
            return false;
183
        }
184
        return true;
185
    }
186
}
187