Code Duplication    Length = 147-154 lines in 4 locations

MetadataV1/src/edm/TComplexTypeType.php 1 location

@@ 11-157 (lines=147) @@
8
 *
9
 * XSD Type: TComplexType
10
 */
11
class TComplexTypeType
12
{
13
14
    /**
15
     * @property string $name
16
     */
17
    private $name = null;
18
19
    /**
20
     * @property string $typeAccess
21
     */
22
    private $typeAccess = null;
23
24
    /**
25
     * @property \MetadataV1\edm\TDocumentationType $documentation
26
     */
27
    private $documentation = null;
28
29
    /**
30
     * @property \MetadataV1\edm\TComplexTypePropertyType[] $property
31
     */
32
    private $property = array(
33
        
34
    );
35
36
    /**
37
     * Gets as name
38
     *
39
     * @return string
40
     */
41
    public function getName()
42
    {
43
        return $this->name;
44
    }
45
46
    /**
47
     * Sets a new name
48
     *
49
     * @param string $name
50
     * @return self
51
     */
52
    public function setName($name)
53
    {
54
        $this->name = $name;
55
        return $this;
56
    }
57
58
    /**
59
     * Gets as typeAccess
60
     *
61
     * @return string
62
     */
63
    public function getTypeAccess()
64
    {
65
        return $this->typeAccess;
66
    }
67
68
    /**
69
     * Sets a new typeAccess
70
     *
71
     * @param string $typeAccess
72
     * @return self
73
     */
74
    public function setTypeAccess($typeAccess)
75
    {
76
        $this->typeAccess = $typeAccess;
77
        return $this;
78
    }
79
80
    /**
81
     * Gets as documentation
82
     *
83
     * @return \MetadataV1\edm\TDocumentationType
84
     */
85
    public function getDocumentation()
86
    {
87
        return $this->documentation;
88
    }
89
90
    /**
91
     * Sets a new documentation
92
     *
93
     * @param \MetadataV1\edm\TDocumentationType $documentation
94
     * @return self
95
     */
96
    public function setDocumentation(\MetadataV1\edm\TDocumentationType $documentation)
97
    {
98
        $this->documentation = $documentation;
99
        return $this;
100
    }
101
102
    /**
103
     * Adds as property
104
     *
105
     * @return self
106
     * @param \MetadataV1\edm\TComplexTypePropertyType $property
107
     */
108
    public function addToProperty(\MetadataV1\edm\TComplexTypePropertyType $property)
109
    {
110
        $this->property[] = $property;
111
        return $this;
112
    }
113
114
    /**
115
     * isset property
116
     *
117
     * @param scalar $index
118
     * @return boolean
119
     */
120
    public function issetProperty($index)
121
    {
122
        return isset($this->property[$index]);
123
    }
124
125
    /**
126
     * unset property
127
     *
128
     * @param scalar $index
129
     * @return void
130
     */
131
    public function unsetProperty($index)
132
    {
133
        unset($this->property[$index]);
134
    }
135
136
    /**
137
     * Gets as property
138
     *
139
     * @return \MetadataV1\edm\TComplexTypePropertyType[]
140
     */
141
    public function getProperty()
142
    {
143
        return $this->property;
144
    }
145
146
    /**
147
     * Sets a new property
148
     *
149
     * @param \MetadataV1\edm\TComplexTypePropertyType[] $property
150
     * @return self
151
     */
152
    public function setProperty(array $property)
153
    {
154
        $this->property = $property;
155
        return $this;
156
    }
157
}
158

MetadataV2/src/edm/EntityContainer/AssociationSetAnonymousType.php 1 location

@@ 8-161 (lines=154) @@
5
/**
6
 * Class representing AssociationSetAnonymousType
7
 */
8
class AssociationSetAnonymousType
9
{
10
11
    /**
12
     * @property string $name
13
     */
14
    private $name = null;
15
16
    /**
17
     * @property string $association
18
     */
19
    private $association = null;
20
21
    /**
22
     * @property \MetadataV2\edm\TDocumentationType $documentation
23
     */
24
    private $documentation = null;
25
26
    /**
27
     * @property
28
     * \MetadataV2\edm\EntityContainer\AssociationSetAnonymousType\EndAnonymousType[]
29
     * $end
30
     */
31
    private $end = array(
32
        
33
    );
34
35
    /**
36
     * Gets as name
37
     *
38
     * @return string
39
     */
40
    public function getName()
41
    {
42
        return $this->name;
43
    }
44
45
    /**
46
     * Sets a new name
47
     *
48
     * @param string $name
49
     * @return self
50
     */
51
    public function setName($name)
52
    {
53
        $this->name = $name;
54
        return $this;
55
    }
56
57
    /**
58
     * Gets as association
59
     *
60
     * @return string
61
     */
62
    public function getAssociation()
63
    {
64
        return $this->association;
65
    }
66
67
    /**
68
     * Sets a new association
69
     *
70
     * @param string $association
71
     * @return self
72
     */
73
    public function setAssociation($association)
74
    {
75
        $this->association = $association;
76
        return $this;
77
    }
78
79
    /**
80
     * Gets as documentation
81
     *
82
     * @return \MetadataV2\edm\TDocumentationType
83
     */
84
    public function getDocumentation()
85
    {
86
        return $this->documentation;
87
    }
88
89
    /**
90
     * Sets a new documentation
91
     *
92
     * @param \MetadataV2\edm\TDocumentationType $documentation
93
     * @return self
94
     */
95
    public function setDocumentation(\MetadataV2\edm\TDocumentationType $documentation)
96
    {
97
        $this->documentation = $documentation;
98
        return $this;
99
    }
100
101
    /**
102
     * Adds as end
103
     *
104
     * @return self
105
     * @param
106
     * \MetadataV2\edm\EntityContainer\AssociationSetAnonymousType\EndAnonymousType
107
     * $end
108
     */
109
    public function addToEnd(\MetadataV2\edm\EntityContainer\AssociationSetAnonymousType\EndAnonymousType $end)
110
    {
111
        $this->end[] = $end;
112
        return $this;
113
    }
114
115
    /**
116
     * isset end
117
     *
118
     * @param scalar $index
119
     * @return boolean
120
     */
121
    public function issetEnd($index)
122
    {
123
        return isset($this->end[$index]);
124
    }
125
126
    /**
127
     * unset end
128
     *
129
     * @param scalar $index
130
     * @return void
131
     */
132
    public function unsetEnd($index)
133
    {
134
        unset($this->end[$index]);
135
    }
136
137
    /**
138
     * Gets as end
139
     *
140
     * @return
141
     * \MetadataV2\edm\EntityContainer\AssociationSetAnonymousType\EndAnonymousType[]
142
     */
143
    public function getEnd()
144
    {
145
        return $this->end;
146
    }
147
148
    /**
149
     * Sets a new end
150
     *
151
     * @param
152
     * \MetadataV2\edm\EntityContainer\AssociationSetAnonymousType\EndAnonymousType[]
153
     * $end
154
     * @return self
155
     */
156
    public function setEnd(array $end)
157
    {
158
        $this->end = $end;
159
        return $this;
160
    }
161
}
162

MetadataV2/src/edm/TAssociationType.php 1 location

@@ 11-157 (lines=147) @@
8
 *
9
 * XSD Type: TAssociation
10
 */
11
class TAssociationType
12
{
13
14
    /**
15
     * @property string $name
16
     */
17
    private $name = null;
18
19
    /**
20
     * @property \MetadataV2\edm\TDocumentationType $documentation
21
     */
22
    private $documentation = null;
23
24
    /**
25
     * @property \MetadataV2\edm\TAssociationEndType[] $end
26
     */
27
    private $end = array(
28
        
29
    );
30
31
    /**
32
     * @property \MetadataV2\edm\TConstraintType $referentialConstraint
33
     */
34
    private $referentialConstraint = null;
35
36
    /**
37
     * Gets as name
38
     *
39
     * @return string
40
     */
41
    public function getName()
42
    {
43
        return $this->name;
44
    }
45
46
    /**
47
     * Sets a new name
48
     *
49
     * @param string $name
50
     * @return self
51
     */
52
    public function setName($name)
53
    {
54
        $this->name = $name;
55
        return $this;
56
    }
57
58
    /**
59
     * Gets as documentation
60
     *
61
     * @return \MetadataV2\edm\TDocumentationType
62
     */
63
    public function getDocumentation()
64
    {
65
        return $this->documentation;
66
    }
67
68
    /**
69
     * Sets a new documentation
70
     *
71
     * @param \MetadataV2\edm\TDocumentationType $documentation
72
     * @return self
73
     */
74
    public function setDocumentation(\MetadataV2\edm\TDocumentationType $documentation)
75
    {
76
        $this->documentation = $documentation;
77
        return $this;
78
    }
79
80
    /**
81
     * Adds as end
82
     *
83
     * @return self
84
     * @param \MetadataV2\edm\TAssociationEndType $end
85
     */
86
    public function addToEnd(\MetadataV2\edm\TAssociationEndType $end)
87
    {
88
        $this->end[] = $end;
89
        return $this;
90
    }
91
92
    /**
93
     * isset end
94
     *
95
     * @param scalar $index
96
     * @return boolean
97
     */
98
    public function issetEnd($index)
99
    {
100
        return isset($this->end[$index]);
101
    }
102
103
    /**
104
     * unset end
105
     *
106
     * @param scalar $index
107
     * @return void
108
     */
109
    public function unsetEnd($index)
110
    {
111
        unset($this->end[$index]);
112
    }
113
114
    /**
115
     * Gets as end
116
     *
117
     * @return \MetadataV2\edm\TAssociationEndType[]
118
     */
119
    public function getEnd()
120
    {
121
        return $this->end;
122
    }
123
124
    /**
125
     * Sets a new end
126
     *
127
     * @param \MetadataV2\edm\TAssociationEndType[] $end
128
     * @return self
129
     */
130
    public function setEnd(array $end)
131
    {
132
        $this->end = $end;
133
        return $this;
134
    }
135
136
    /**
137
     * Gets as referentialConstraint
138
     *
139
     * @return \MetadataV2\edm\TConstraintType
140
     */
141
    public function getReferentialConstraint()
142
    {
143
        return $this->referentialConstraint;
144
    }
145
146
    /**
147
     * Sets a new referentialConstraint
148
     *
149
     * @param \MetadataV2\edm\TConstraintType $referentialConstraint
150
     * @return self
151
     */
152
    public function setReferentialConstraint(\MetadataV2\edm\TConstraintType $referentialConstraint)
153
    {
154
        $this->referentialConstraint = $referentialConstraint;
155
        return $this;
156
    }
157
}
158

MetadataV2/src/edm/TComplexTypeType.php 1 location

@@ 11-157 (lines=147) @@
8
 *
9
 * XSD Type: TComplexType
10
 */
11
class TComplexTypeType
12
{
13
14
    /**
15
     * @property string $name
16
     */
17
    private $name = null;
18
19
    /**
20
     * @property string $typeAccess
21
     */
22
    private $typeAccess = null;
23
24
    /**
25
     * @property \MetadataV2\edm\TDocumentationType $documentation
26
     */
27
    private $documentation = null;
28
29
    /**
30
     * @property \MetadataV2\edm\TComplexTypePropertyType[] $property
31
     */
32
    private $property = array(
33
        
34
    );
35
36
    /**
37
     * Gets as name
38
     *
39
     * @return string
40
     */
41
    public function getName()
42
    {
43
        return $this->name;
44
    }
45
46
    /**
47
     * Sets a new name
48
     *
49
     * @param string $name
50
     * @return self
51
     */
52
    public function setName($name)
53
    {
54
        $this->name = $name;
55
        return $this;
56
    }
57
58
    /**
59
     * Gets as typeAccess
60
     *
61
     * @return string
62
     */
63
    public function getTypeAccess()
64
    {
65
        return $this->typeAccess;
66
    }
67
68
    /**
69
     * Sets a new typeAccess
70
     *
71
     * @param string $typeAccess
72
     * @return self
73
     */
74
    public function setTypeAccess($typeAccess)
75
    {
76
        $this->typeAccess = $typeAccess;
77
        return $this;
78
    }
79
80
    /**
81
     * Gets as documentation
82
     *
83
     * @return \MetadataV2\edm\TDocumentationType
84
     */
85
    public function getDocumentation()
86
    {
87
        return $this->documentation;
88
    }
89
90
    /**
91
     * Sets a new documentation
92
     *
93
     * @param \MetadataV2\edm\TDocumentationType $documentation
94
     * @return self
95
     */
96
    public function setDocumentation(\MetadataV2\edm\TDocumentationType $documentation)
97
    {
98
        $this->documentation = $documentation;
99
        return $this;
100
    }
101
102
    /**
103
     * Adds as property
104
     *
105
     * @return self
106
     * @param \MetadataV2\edm\TComplexTypePropertyType $property
107
     */
108
    public function addToProperty(\MetadataV2\edm\TComplexTypePropertyType $property)
109
    {
110
        $this->property[] = $property;
111
        return $this;
112
    }
113
114
    /**
115
     * isset property
116
     *
117
     * @param scalar $index
118
     * @return boolean
119
     */
120
    public function issetProperty($index)
121
    {
122
        return isset($this->property[$index]);
123
    }
124
125
    /**
126
     * unset property
127
     *
128
     * @param scalar $index
129
     * @return void
130
     */
131
    public function unsetProperty($index)
132
    {
133
        unset($this->property[$index]);
134
    }
135
136
    /**
137
     * Gets as property
138
     *
139
     * @return \MetadataV2\edm\TComplexTypePropertyType[]
140
     */
141
    public function getProperty()
142
    {
143
        return $this->property;
144
    }
145
146
    /**
147
     * Sets a new property
148
     *
149
     * @param \MetadataV2\edm\TComplexTypePropertyType[] $property
150
     * @return self
151
     */
152
    public function setProperty(array $property)
153
    {
154
        $this->property = $property;
155
        return $this;
156
    }
157
}
158