Code Duplication    Length = 9-13 lines in 2 locations

src/MetadataV3/mapping/cs/TEntityContainerMappingType.php 2 locations

@@ 202-210 (lines=9) @@
199
     * @return self
200
     * @param \AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TAssociationSetMappingType $associationSetMapping
201
     */
202
    public function addToAssociationSetMapping(TAssociationSetMappingType $associationSetMapping)
203
    {
204
        $msg = null;
205
        if (!$associationSetMapping->isOK($msg)) {
206
            throw new \InvalidArgumentException($msg);
207
        }
208
        $this->associationSetMapping[] = $associationSetMapping;
209
        return $this;
210
    }
211
212
    /**
213
     * isset associationSetMapping
@@ 251-263 (lines=13) @@
248
     * $associationSetMapping
249
     * @return self
250
     */
251
    public function setAssociationSetMapping(array $associationSetMapping)
252
    {
253
        $msg = null;
254
        if (!$this->isValidArrayOK(
255
            $associationSetMapping,
256
            '\AlgoWeb\ODataMetadata\MetadataV3\mapping\cs\TAssociationSetMappingType',
257
            $msg
258
        )) {
259
            throw new \InvalidArgumentException($msg);
260
        }
261
        $this->associationSetMapping = $associationSetMapping;
262
        return $this;
263
    }
264
265
    /**
266
     * Adds as functionImportMapping