Code Duplication    Length = 8-10 lines in 3 locations

src/Request/PostMessageRequest.php 2 locations

@@ 290-298 (lines=9) @@
287
     *
288
     * @return array
289
     */
290
    public static function getClasses() : array
291
    {
292
        return [
293
            self::CLASS_0 => self::CLASS_0,
294
            self::CLASS_1 => self::CLASS_1,
295
            self::CLASS_2 => self::CLASS_2,
296
            self::CLASS_3 => self::CLASS_3
297
        ];
298
    }
299
300
    /**
301
     * Returns the possible formats for the payload
@@ 305-314 (lines=10) @@
302
     *
303
     * @return array
304
     */
305
    public static function getFormats() : array
306
    {
307
        return [
308
            self::FORMAT_GSM => self::FORMAT_GSM,
309
            self::FORMAT_UNICODE => self::FORMAT_UNICODE,
310
            self::FORMAT_BINARY => self::FORMAT_BINARY,
311
            self::FORMAT_WAPPUSH => self::FORMAT_WAPPUSH,
312
            self::FORMAT_MMS => self::FORMAT_MMS
313
        ];
314
    }
315
316
    /*
317
     * Getters / Setters

src/Response/BatchStatusResponse/Details.php 1 location

@@ 56-63 (lines=8) @@
53
        $this->state = $data['state'];
54
    }
55
56
    public static function getStates() : array
57
    {
58
        return [
59
            self::STATE_DONE => self::STATE_DONE,
60
            self::STATE_QUEUED => self::STATE_QUEUED,
61
            self::STATE_RUNNING => self::STATE_RUNNING,
62
        ];
63
    }
64
65
    public function isState(string $state) : bool
66
    {