Code Duplication    Length = 133-133 lines in 2 locations

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

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

src/MetadataV3/edm/ssdl/EntityContainer/AssociationSetAnonymousType.php 1 location

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