Passed
Push — master ( c03365...9d1091 )
by Alex
07:25
created

TAnnotationsType::unsetTypeAnnotation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\edm;
4
5
/**
6
 * Class representing TAnnotationsType
7
 *
8
 *
9
 * XSD Type: TAnnotations
10
 */
11
class TAnnotationsType
12
{
13
14
    /**
15
     * @property string $target
16
     */
17
    private $target = null;
18
19
    /**
20
     * @property string $qualifier
21
     */
22
    private $qualifier = null;
23
24
    /**
25
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TValueAnnotationType[] $valueAnnotation
26
     */
27
    private $valueAnnotation = array(
28
        
29
    );
30
31
    /**
32
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TTypeAnnotationType[] $typeAnnotation
33
     */
34
    private $typeAnnotation = array(
35
        
36
    );
37
38
    /**
39
     * Gets as target
40
     *
41
     * @return string
42
     */
43
    public function getTarget()
44
    {
45
        return $this->target;
46
    }
47
48
    /**
49
     * Sets a new target
50
     *
51
     * @param string $target
52
     * @return self
53
     */
54
    public function setTarget($target)
55
    {
56
        $this->target = $target;
57
        return $this;
58
    }
59
60
    /**
61
     * Gets as qualifier
62
     *
63
     * @return string
64
     */
65
    public function getQualifier()
66
    {
67
        return $this->qualifier;
68
    }
69
70
    /**
71
     * Sets a new qualifier
72
     *
73
     * @param string $qualifier
74
     * @return self
75
     */
76
    public function setQualifier($qualifier)
77
    {
78
        $this->qualifier = $qualifier;
79
        return $this;
80
    }
81
82
    /**
83
     * Adds as valueAnnotation
84
     *
85
     * @return self
86
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TValueAnnotationType $valueAnnotation
87
     */
88
    public function addToValueAnnotation(TValueAnnotationType $valueAnnotation)
89
    {
90
        $this->valueAnnotation[] = $valueAnnotation;
91
        return $this;
92
    }
93
94
    /**
95
     * isset valueAnnotation
96
     *
97
     * @param scalar $index
98
     * @return boolean
99
     */
100
    public function issetValueAnnotation($index)
101
    {
102
        return isset($this->valueAnnotation[$index]);
103
    }
104
105
    /**
106
     * unset valueAnnotation
107
     *
108
     * @param scalar $index
109
     * @return void
110
     */
111
    public function unsetValueAnnotation($index)
112
    {
113
        unset($this->valueAnnotation[$index]);
114
    }
115
116
    /**
117
     * Gets as valueAnnotation
118
     *
119
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TValueAnnotationType[]
120
     */
121
    public function getValueAnnotation()
122
    {
123
        return $this->valueAnnotation;
124
    }
125
126
    /**
127
     * Sets a new valueAnnotation
128
     *
129
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TValueAnnotationType[] $valueAnnotation
130
     * @return self
131
     */
132
    public function setValueAnnotation(array $valueAnnotation)
133
    {
134
        $this->valueAnnotation = $valueAnnotation;
135
        return $this;
136
    }
137
138
    /**
139
     * Adds as typeAnnotation
140
     *
141
     * @return self
142
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TTypeAnnotationType $typeAnnotation
143
     */
144
    public function addToTypeAnnotation(TTypeAnnotationType $typeAnnotation)
145
    {
146
        $this->typeAnnotation[] = $typeAnnotation;
147
        return $this;
148
    }
149
150
    /**
151
     * isset typeAnnotation
152
     *
153
     * @param scalar $index
154
     * @return boolean
155
     */
156
    public function issetTypeAnnotation($index)
157
    {
158
        return isset($this->typeAnnotation[$index]);
159
    }
160
161
    /**
162
     * unset typeAnnotation
163
     *
164
     * @param scalar $index
165
     * @return void
166
     */
167
    public function unsetTypeAnnotation($index)
168
    {
169
        unset($this->typeAnnotation[$index]);
170
    }
171
172
    /**
173
     * Gets as typeAnnotation
174
     *
175
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TTypeAnnotationType[]
176
     */
177
    public function getTypeAnnotation()
178
    {
179
        return $this->typeAnnotation;
180
    }
181
182
    /**
183
     * Sets a new typeAnnotation
184
     *
185
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TTypeAnnotationType[] $typeAnnotation
186
     * @return self
187
     */
188
    public function setTypeAnnotation(array $typeAnnotation)
189
    {
190
        $this->typeAnnotation = $typeAnnotation;
191
        return $this;
192
    }
193
}
194