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

TAssociationEndType   A

Complexity

Total Complexity 13

Size/Duplication

Total Lines 172
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 25
dl 0
loc 172
rs 10
c 0
b 0
f 0
wmc 13

13 Methods

Rating   Name   Duplication   Size   Complexity  
A getRole() 0 3 1
A setRole() 0 4 1
A getDocumentation() 0 3 1
A setMultiplicity() 0 4 1
A addToOnDelete() 0 4 1
A setDocumentation() 0 4 1
A getMultiplicity() 0 3 1
A unsetOnDelete() 0 3 1
A getOnDelete() 0 3 1
A issetOnDelete() 0 3 1
A getType() 0 3 1
A setType() 0 4 1
A setOnDelete() 0 4 1
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV2\edm\ssdl;
4
5
/**
6
 * Class representing TAssociationEndType
7
 *
8
 *
9
 * XSD Type: TAssociationEnd
10
 */
11
class TAssociationEndType
12
{
13
14
    /**
15
     * @property string $type
16
     */
17
    private $type = null;
18
19
    /**
20
     * @property string $role
21
     */
22
    private $role = null;
23
24
    /**
25
     * @property string $multiplicity
26
     */
27
    private $multiplicity = null;
28
29
    /**
30
     * @property \AlgoWeb\ODataMetadata\MetadataV2\edm\ssdl\TDocumentationType $documentation
31
     */
32
    private $documentation = null;
33
34
    /**
35
     * @property \AlgoWeb\ODataMetadata\MetadataV2\edm\ssdl\TOnActionType[] $onDelete
36
     */
37
    private $onDelete = array(
38
        
39
    );
40
41
    /**
42
     * Gets as type
43
     *
44
     * @return string
45
     */
46
    public function getType()
47
    {
48
        return $this->type;
49
    }
50
51
    /**
52
     * Sets a new type
53
     *
54
     * @param string $type
55
     * @return self
56
     */
57
    public function setType($type)
58
    {
59
        $this->type = $type;
60
        return $this;
61
    }
62
63
    /**
64
     * Gets as role
65
     *
66
     * @return string
67
     */
68
    public function getRole()
69
    {
70
        return $this->role;
71
    }
72
73
    /**
74
     * Sets a new role
75
     *
76
     * @param string $role
77
     * @return self
78
     */
79
    public function setRole($role)
80
    {
81
        $this->role = $role;
82
        return $this;
83
    }
84
85
    /**
86
     * Gets as multiplicity
87
     *
88
     * @return string
89
     */
90
    public function getMultiplicity()
91
    {
92
        return $this->multiplicity;
93
    }
94
95
    /**
96
     * Sets a new multiplicity
97
     *
98
     * @param string $multiplicity
99
     * @return self
100
     */
101
    public function setMultiplicity($multiplicity)
102
    {
103
        $this->multiplicity = $multiplicity;
104
        return $this;
105
    }
106
107
    /**
108
     * Gets as documentation
109
     *
110
     * @return \AlgoWeb\ODataMetadata\MetadataV2\edm\ssdl\TDocumentationType
111
     */
112
    public function getDocumentation()
113
    {
114
        return $this->documentation;
115
    }
116
117
    /**
118
     * Sets a new documentation
119
     *
120
     * @param \AlgoWeb\ODataMetadata\MetadataV2\edm\ssdl\TDocumentationType $documentation
121
     * @return self
122
     */
123
    public function setDocumentation(TDocumentationType $documentation)
124
    {
125
        $this->documentation = $documentation;
126
        return $this;
127
    }
128
129
    /**
130
     * Adds as onDelete
131
     *
132
     * @return self
133
     * @param \AlgoWeb\ODataMetadata\MetadataV2\edm\ssdl\TOnActionType $onDelete
134
     */
135
    public function addToOnDelete(TOnActionType $onDelete)
136
    {
137
        $this->onDelete[] = $onDelete;
138
        return $this;
139
    }
140
141
    /**
142
     * isset onDelete
143
     *
144
     * @param scalar $index
145
     * @return boolean
146
     */
147
    public function issetOnDelete($index)
148
    {
149
        return isset($this->onDelete[$index]);
150
    }
151
152
    /**
153
     * unset onDelete
154
     *
155
     * @param scalar $index
156
     * @return void
157
     */
158
    public function unsetOnDelete($index)
159
    {
160
        unset($this->onDelete[$index]);
161
    }
162
163
    /**
164
     * Gets as onDelete
165
     *
166
     * @return \AlgoWeb\ODataMetadata\MetadataV2\edm\ssdl\TOnActionType[]
167
     */
168
    public function getOnDelete()
169
    {
170
        return $this->onDelete;
171
    }
172
173
    /**
174
     * Sets a new onDelete
175
     *
176
     * @param \AlgoWeb\ODataMetadata\MetadataV2\edm\ssdl\TOnActionType[] $onDelete
177
     * @return self
178
     */
179
    public function setOnDelete(array $onDelete)
180
    {
181
        $this->onDelete = $onDelete;
182
        return $this;
183
    }
184
}
185