Code Duplication    Length = 4-4 lines in 3 locations

src/MetadataV3/edm/TNavigationPropertyType.php 1 location

@@ 237-240 (lines=4) @@
234
            $msg = "Getter access must be a valid TAccess";
235
            return false;
236
        }
237
        if (null != $this->setterAccess && !$this->isTAccessOk($this->setterAccess)) {
238
            $msg = "Setter access must be a valid TAccess";
239
            return false;
240
        }
241
        if (!$this->isExtensibilityElementOK($msg)) {
242
            return false;
243
        }

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

@@ 284-287 (lines=4) @@
281
            $msg = "Entity set must be either null or an instance of TOperandType: " . get_class($this);
282
            return false;
283
        }
284
        if (null != $this->methodAccess && !$this->isTAccessOk($this->methodAccess)) {
285
            $msg = "Method access must be a valid TAccess: " . get_class($this);
286
            return false;
287
        }
288
        if (!$this->isValidArrayOK(
289
            $this->returnType,
290
            '\AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionImportReturnTypeType',

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

@@ 529-532 (lines=4) @@
526
            $msg = "ConcurrencyMode must be a valid TConcurrencyMode: " . get_class($this);
527
            return false;
528
        }
529
        if (null != $this->setterAccess && !$this->isTAccessOk($this->setterAccess)) {
530
            $msg = "Setter access must be a valid TAccess: " . get_class($this);
531
            return false;
532
        }
533
        if (null != $this->getterAccess && !$this->isTAccessOk($this->getterAccess)) {
534
            $msg = "Getter access must be a valid TAccess: " . get_class($this);
535
            return false;