Code Duplication    Length = 8-8 lines in 2 locations

src/Types/User.php 1 location

@@ 109-116 (lines=8) @@
106
     *
107
     * @throws InvalidArgumentException
108
     */
109
    public function setId($id)
110
    {
111
        if (is_integer($id) || is_float($id)) {
112
            $this->id = $id;
113
        } else {
114
            throw new InvalidArgumentException();
115
        }
116
    }
117
118
    /**
119
     * @return string

src/Types/Chat.php 1 location

@@ 146-153 (lines=8) @@
143
     *
144
     * @throws InvalidArgumentException
145
     */
146
    public function setId($id)
147
    {
148
        if (is_integer($id) || is_float($id) || is_string($id)) {
149
            $this->id = $id;
150
        } else {
151
            throw new InvalidArgumentException();
152
        }
153
    }
154
155
    /**
156
     * @return string