Code Duplication    Length = 9-9 lines in 14 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/TAssociationEndType.php 1 location

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

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/TConstraintType.php 1 location

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

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/TEnumTypeType.php 1 location

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

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/TValueTermType.php 1 location

@@ 129-137 (lines=9) @@
126
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType $documentation
127
     * @return self
128
     */
129
    public function setDocumentation(TDocumentationType $documentation)
130
    {
131
        $msg = null;
132
        if (!$documentation->isOK($msg)) {
133
            throw new \InvalidArgumentException($msg);
134
        }
135
        $this->documentation = $documentation;
136
        return $this;
137
    }
138
139
    /**
140
     * Gets as collectionType