Code Duplication    Length = 13-13 lines in 2 locations

src/BenatEspina/StackExchangeApiClient/Infrastructure/Domain/Model/AnemicNetworkUser.php 1 location

@@ 255-267 (lines=13) @@
252
        return $this->userType;
253
    }
254
255
    public function setUserType($userType)
256
    {
257
        if (in_array($userType, [
258
            self::USER_TYPE_DOES_NOT_EXIST,
259
            self::USER_TYPE_MODERATOR,
260
            self::USER_TYPE_REGISTERED,
261
            self::USER_TYPE_UNREGISTERED,
262
        ], true)) {
263
            $this->userType = $userType;
264
        }
265
266
        return $this;
267
    }
268
}
269

src/BenatEspina/StackExchangeApiClient/Infrastructure/Domain/Model/AnemicShallowUser.php 1 location

@@ 183-195 (lines=13) @@
180
        return $this->userType;
181
    }
182
183
    public function setUserType($userType)
184
    {
185
        if (in_array($userType, [
186
            self::USER_TYPE_DOES_NOT_EXIST,
187
            self::USER_TYPE_MODERATOR,
188
            self::USER_TYPE_REGISTERED,
189
            self::USER_TYPE_UNREGISTERED,
190
        ], true)) {
191
            $this->userType = $userType;
192
        }
193
194
        return $this;
195
    }
196
}
197