Code Duplication    Length = 8-8 lines in 2 locations

src/BenatEspina/StackExchangeApiClient/Model/Comment.php 1 location

@@ 232-239 (lines=8) @@
229
        return $this->postType;
230
    }
231
232
    public function setPostType($postType)
233
    {
234
        if (in_array($postType, [self::POST_TYPE_QUESTION, self::POST_TYPE_ANSWER])) {
235
            $this->postType = $postType;
236
        }
237
238
        return $this;
239
    }
240
241
    public function getReplyToUser()
242
    {

src/BenatEspina/StackExchangeApiClient/Model/NetworkPost.php 1 location

@@ 69-76 (lines=8) @@
66
        return $this->postType;
67
    }
68
69
    public function setPostType($postType)
70
    {
71
        if (in_array($postType, [self::POST_TYPE_QUESTION, self::POST_TYPE_ANSWER])) {
72
            $this->postType = $postType;
73
        }
74
75
        return $this;
76
    }
77
78
    public function getScore()
79
    {