Code Duplication    Length = 9-9 lines in 3 locations

src/MetadataV3/mapping/cs/Groups/TPropertyGroup.php 1 location

@@ 42-50 (lines=9) @@
39
     * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TComplexPropertyType $complexProperty
40
     * @return self
41
     */
42
    public function setComplexProperty(TComplexPropertyType $complexProperty)
43
    {
44
        $msg = null;
45
        if (!$complexProperty->isOK($msg)) {
46
            throw new \InvalidArgumentException($msg);
47
        }
48
        $this->complexProperty = $complexProperty;
49
        return $this;
50
    }
51
52
    /**
53
     * Gets as scalarProperty

src/MetadataV3/mapping/cs/TComplexPropertyType.php 1 location

@@ 208-216 (lines=9) @@
205
     * @return self
206
     * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TComplexPropertyType $complexProperty
207
     */
208
    public function addToComplexProperty(TComplexPropertyType $complexProperty)
209
    {
210
        $msg = null;
211
        if (!$complexProperty->isOK($msg)) {
212
            throw new \InvalidArgumentException($msg);
213
        }
214
        $this->complexProperty[] = $complexProperty;
215
        return $this;
216
    }
217
218
    /**
219
     * isset complexProperty

src/MetadataV3/mapping/cs/TComplexTypeMappingType.php 1 location

@@ 169-177 (lines=9) @@
166
     * @return self
167
     * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TComplexPropertyType $complexProperty
168
     */
169
    public function addToComplexProperty(TComplexPropertyType $complexProperty)
170
    {
171
        $msg = null;
172
        if (!$complexProperty->isOK($msg)) {
173
            throw new \InvalidArgumentException($msg);
174
        }
175
        $this->complexProperty[] = $complexProperty;
176
        return $this;
177
    }
178
179
    /**
180
     * isset complexProperty