Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 124-127 (lines=4) @@
121
            $msg = "Entity type must be a valid TQualifiedName: " . get_class($this);
122
            return false;
123
        }
124
        if (null != $this->getterAccess && !$this->isTAccessOk($this->getterAccess)) {
125
            $msg = "Getter access must be a valid TAccess: " . get_class($this);
126
            return false;
127
        }
128
129
        return true;
130
    }

src/MetadataV3/edm/TNavigationPropertyType.php 1 location

@@ 233-236 (lines=4) @@
230
            $msg = "From role must be a valid TSimpleIdentifier";
231
            return false;
232
        }
233
        if (null != $this->getterAccess && !$this->isTAccessOk($this->getterAccess)) {
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;

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

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