Code Duplication    Length = 9-10 lines in 3 locations

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

@@ 102-111 (lines=10) @@
99
     * @param string $getterAccess
100
     * @return self
101
     */
102
    public function setGetterAccess($getterAccess)
103
    {
104
        $msg = null;
105
        if (null != $getterAccess && !$this->isTAccessOk($getterAccess)) {
106
            $msg = "Getter access must be a valid TAccess";
107
            throw new \InvalidArgumentException($msg);
108
        }
109
        $this->getterAccess = $getterAccess;
110
        return $this;
111
    }
112
    
113
    
114
    public function isTEntitySetAttributesOK(&$msg = null)

src/MetadataV3/edm/TNavigationPropertyType.php 1 location

@@ 179-187 (lines=9) @@
176
     * @param string $getterAccess
177
     * @return self
178
     */
179
    public function setGetterAccess($getterAccess)
180
    {
181
        if (null != $getterAccess && !$this->isTAccessOk($getterAccess)) {
182
            $msg = "Getter access must be a valid TAccess";
183
            throw new \InvalidArgumentException($msg);
184
        }
185
        $this->getterAccess = $getterAccess;
186
        return $this;
187
    }
188
189
    /**
190
     * Gets as setterAccess

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

@@ 467-476 (lines=10) @@
464
     * @param string $getterAccess
465
     * @return self
466
     */
467
    public function setGetterAccess($getterAccess)
468
    {
469
        $msg = null;
470
        if (null != $getterAccess && !$this->isTAccessOk($getterAccess)) {
471
            $msg = "Getter access must be a valid TAccess";
472
            throw new \InvalidArgumentException($msg);
473
        }
474
        $this->getterAccess = $getterAccess;
475
        return $this;
476
    }
477
478
    public function isTCommonPropertyAttributesValid(&$msg = null)
479
    {