Code Duplication    Length = 9-9 lines in 4 locations

src/MetadataV3/edm/TComplexTypeType.php 1 location

@@ 60-68 (lines=9) @@
57
     * @param string $typeAccess
58
     * @return self
59
     */
60
    public function setTypeAccess($typeAccess)
61
    {
62
        if (!$this->isTPublicOrInternalAccessOK($typeAccess)) {
63
            $msg = "Type access must be Public or Internal";
64
            throw new \InvalidArgumentException($msg);
65
        }
66
        $this->typeAccess = $typeAccess;
67
        return $this;
68
    }
69
70
    /**
71
     * Gets as documentation

src/MetadataV3/edm/TEntityTypeType.php 1 location

@@ 96-104 (lines=9) @@
93
     * @param string $typeAccess
94
     * @return self
95
     */
96
    public function setTypeAccess($typeAccess)
97
    {
98
        if (null != $typeAccess && !$this->isTPublicOrInternalAccessOK($typeAccess)) {
99
            $msg = "Type access must be Public or Internal";
100
            throw new \InvalidArgumentException($msg);
101
        }
102
        $this->typeAccess = $typeAccess;
103
        return $this;
104
    }
105
106
    /**
107
     * Gets as documentation

src/MetadataV3/edm/TEnumTypeType.php 1 location

@@ 114-122 (lines=9) @@
111
     * @param string $typeAccess
112
     * @return self
113
     */
114
    public function setTypeAccess($typeAccess)
115
    {
116
        if (!$this->isTPublicOrInternalAccessOK($typeAccess)) {
117
            $msg = "Type access must be Public or Internal";
118
            throw new \InvalidArgumentException($msg);
119
        }
120
        $this->typeAccess = $typeAccess;
121
        return $this;
122
    }
123
124
    /**
125
     * Gets as documentation

src/MetadataV3/edm/EntityContainer.php 1 location

@@ 139-147 (lines=9) @@
136
     * @param string $typeAccess
137
     * @return self
138
     */
139
    public function setTypeAccess($typeAccess)
140
    {
141
        if (null != $typeAccess && !($this->isTPublicOrInternalAccessOK($typeAccess))) {
142
            $msg = "Type access must be Public or Internal";
143
            throw new \InvalidArgumentException($msg);
144
        }
145
        $this->typeAccess = $typeAccess;
146
        return $this;
147
    }
148
149
    /**
150
     * Gets as lazyLoadingEnabled