Code Duplication    Length = 9-9 lines in 13 locations

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

@@ 40-48 (lines=9) @@
37
     * @return self
38
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
39
     */
40
    public function addToDocumentation(TDocumentationType $documentation)
41
    {
42
        $msg = null;
43
        if (!$documentation->isOK($msg)) {
44
            throw new \InvalidArgumentException($msg);
45
        }
46
        $this->documentation[] = $documentation;
47
        return $this;
48
    }
49
50
    /**
51
     * isset documentation

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

@@ 44-52 (lines=9) @@
41
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
42
     * @return self
43
     */
44
    public function setDocumentation(TDocumentationType $documentation)
45
    {
46
        $msg = null;
47
        if (!$documentation->isOK($msg)) {
48
            throw new \InvalidArgumentException($msg);
49
        }
50
        $this->documentation = $documentation;
51
        return $this;
52
    }
53
54
    /**
55
     * Adds as parameter

src/MetadataV3/edm/Groups/GEmptyElementExtensibilityTrait.php 1 location

@@ 33-41 (lines=9) @@
30
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
31
     * @return self
32
     */
33
    public function setDocumentation(TDocumentationType $documentation)
34
    {
35
        $msg = null;
36
        if (!$documentation->isOK($msg)) {
37
            throw new \InvalidArgumentException($msg);
38
        }
39
        $this->documentation = $documentation;
40
        return $this;
41
    }
42
43
    public function isExtensibilityElementOK(&$msg = null)
44
    {

src/MetadataV3/edm/EntityContainer.php 1 location

@@ 182-190 (lines=9) @@
179
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
180
     * @return self
181
     */
182
    public function setDocumentation(TDocumentationType $documentation)
183
    {
184
        $msg = null;
185
        if (!$documentation->isOK($msg)) {
186
            throw new \InvalidArgumentException($msg);
187
        }
188
        $this->documentation = $documentation;
189
        return $this;
190
    }
191
192
    /**
193
     * Adds as functionImport

src/MetadataV3/edm/TAssociationType.php 1 location

@@ 80-88 (lines=9) @@
77
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
78
     * @return self
79
     */
80
    public function setDocumentation(TDocumentationType $documentation)
81
    {
82
        $msg = null;
83
        if (!$documentation->isOK($msg)) {
84
            throw new \InvalidArgumentException($msg);
85
        }
86
        $this->documentation = $documentation;
87
        return $this;
88
    }
89
90
    /**
91
     * Adds as end

src/MetadataV3/edm/TComplexTypePropertyType.php 1 location

@@ 40-48 (lines=9) @@
37
     * @return self
38
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
39
     */
40
    public function addToDocumentation(TDocumentationType $documentation)
41
    {
42
        $msg = null;
43
        if (!$documentation->isOK($msg)) {
44
            throw new \InvalidArgumentException($msg);
45
        }
46
        $this->documentation[] = $documentation;
47
        return $this;
48
    }
49
50
    /**
51
     * isset documentation

src/MetadataV3/edm/TComplexTypeType.php 1 location

@@ 86-94 (lines=9) @@
83
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
84
     * @return self
85
     */
86
    public function setDocumentation(TDocumentationType $documentation)
87
    {
88
        $msg = null;
89
        if (!$documentation->isOK($msg)) {
90
            throw new \InvalidArgumentException($msg);
91
        }
92
        $this->documentation = $documentation;
93
        return $this;
94
    }
95
96
    /**
97
     * Adds as property

src/MetadataV3/edm/TEntityPropertyType.php 1 location

@@ 84-92 (lines=9) @@
81
     * @return self
82
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
83
     */
84
    public function addToDocumentation(TDocumentationType $documentation)
85
    {
86
        $msg = null;
87
        if (!$documentation->isOK($msg)) {
88
            throw new \InvalidArgumentException($msg);
89
        }
90
        $this->documentation[] = $documentation;
91
        return $this;
92
    }
93
94
    /**
95
     * isset documentation

src/MetadataV3/edm/TEntityTypeType.php 1 location

@@ 122-130 (lines=9) @@
119
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
120
     * @return self
121
     */
122
    public function setDocumentation(TDocumentationType $documentation)
123
    {
124
        $msg = null;
125
        if (!$documentation->isOK($msg)) {
126
            throw new \InvalidArgumentException($msg);
127
        }
128
        $this->documentation = $documentation;
129
        return $this;
130
    }
131
132
    /**
133
     * Adds as propertyRef

src/MetadataV3/edm/TFunctionType.php 1 location

@@ 153-161 (lines=9) @@
150
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
151
     * @return self
152
     */
153
    public function setDocumentation(TDocumentationType $documentation)
154
    {
155
        $msg = null;
156
        if (!$documentation->isOK($msg)) {
157
            throw new \InvalidArgumentException($msg);
158
        }
159
        $this->documentation = $documentation;
160
        return $this;
161
    }
162
163
    /**
164
     * Adds as parameter

src/MetadataV3/edm/TAssociationEndType.php 1 location

@@ 139-147 (lines=9) @@
136
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
137
     * @return self
138
     */
139
    public function setDocumentation(TDocumentationType $documentation)
140
    {
141
        $msg = null;
142
        if (!$documentation->isOK($msg)) {
143
            throw new \InvalidArgumentException($msg);
144
        }
145
        $this->documentation = $documentation;
146
        return $this;
147
    }
148
149
    public function isOK(&$msg = null)
150
    {

src/MetadataV3/edm/TEnumTypeType.php 1 location

@@ 140-148 (lines=9) @@
137
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
138
     * @return self
139
     */
140
    public function setDocumentation(TDocumentationType $documentation)
141
    {
142
        $msg = null;
143
        if (!$documentation->isOK($msg)) {
144
            throw new \InvalidArgumentException($msg);
145
        }
146
        $this->documentation = $documentation;
147
        return $this;
148
    }
149
150
    /**
151
     * Adds as member

src/MetadataV3/edm/TValueTermType.php 1 location

@@ 158-166 (lines=9) @@
155
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
156
     * @return self
157
     */
158
    public function setDocumentation(TDocumentationType $documentation)
159
    {
160
        $msg = null;
161
        if (!$documentation->isOK($msg)) {
162
            throw new \InvalidArgumentException($msg);
163
        }
164
        $this->documentation = $documentation;
165
        return $this;
166
    }
167
168
    /**
169
     * Gets as collectionType