Passed
Push — master ( de3d61...be839c )
by Alec
13:42 queued 13s
created

Mindblown::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
c 0
b 0
f 0
nc 1
nop 2
dl 0
loc 8
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
6
namespace AlecRabbit\Spinner\Extras\Pattern\CharPattern;
7
8
use AlecRabbit\Spinner\Core\Pattern\A\ACharPattern;
9
use ArrayObject;
10
11
/**
12
 * @codeCoverageIgnore
13
 * @psalm-suppress UnusedClass
14
 */
15
final class Mindblown extends ACharPattern
16
{
17
    protected const INTERVAL = 200;
18
19
    protected const PATTERN = [
20
        '😊 ',
21
        '🙂 ',
22
        '😐 ',
23
        '😐 ',
24
        '😮 ',
25
        '😮 ',
26
        '😦 ',
27
        '😦 ',
28
        '😧 ',
29
        '😧 ',
30
        '🤯 ',
31
        '💥 ',
32
        '✨ ',
33
        self::SPACE,
34
        self::SPACE,
35
        self::SPACE,
36
    ];
37
    private const SPACE = "\u{3000} ";
38
39
    public function __construct(
40
        ?int $interval = null,
41
        bool $reversed = false
42
    ) {
43
        parent::__construct(
44
            new ArrayObject(self::PATTERN),
45
            $interval ?? self::INTERVAL,
46
            $reversed
47
        );
48
    }
49
}
50