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

StormyWeather   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 69
c 0
b 0
f 0
dl 0
loc 77
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
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 StormyWeather extends ACharPattern
16
{
17
    protected const INTERVAL = 80;
18
19
    protected const PATTERN = [
20
        '☀️ ',
21
        '☀️ ',
22
        '🌤 ',
23
        '🌤 ',
24
        '🌤 ',
25
        '⛅️',
26
        '⛅️',
27
        '🌥 ',
28
        '🌥 ',
29
        '☁️ ',
30
        '☁️ ',
31
        '🌧 ',
32
        '🌨 ',
33
        '🌧 ',
34
        '🌨 ',
35
        '🌧 ',
36
        '🌨 ',
37
        '⛈ ',
38
        '🌨 ',
39
        '⛈ ',
40
        '🌧 ',
41
        '🌨 ',
42
        '🌧 ',
43
        '🌨 ',
44
        '🌧 ',
45
        '🌨 ',
46
        '🌧 ',
47
        '🌨 ',
48
        '🌧 ',
49
        '🌨 ',
50
        '🌧 ',
51
        '⛈ ',
52
        '🌧 ',
53
        '⛈ ',
54
        '🌨 ',
55
        '🌨 ',
56
        '🌧 ',
57
        '🌨 ',
58
        '🌧 ',
59
        '🌨 ',
60
        '🌧 ',
61
        '🌨 ',
62
        '🌧 ',
63
        '🌨 ',
64
        '🌧 ',
65
        '🌨 ',
66
        '🌧 ',
67
        '🌨 ',
68
        '🌧 ',
69
        '🌨 ',
70
        '🌧 ',
71
        '☁️ ',
72
        '☁️ ',
73
        '🌥 ',
74
        '🌥 ',
75
        '⛅️',
76
        '⛅️',
77
        '🌤 ',
78
        '🌤 ',
79
        '🌤 ',
80
        '☀️ ',
81
        '☀️ ',
82
    ];
83
84
    public function __construct(
85
        ?int $interval = null,
86
        bool $reversed = false
87
    ) {
88
        parent::__construct(
89
            new ArrayObject(self::PATTERN),
90
            $interval ?? self::INTERVAL,
91
            $reversed
92
        );
93
    }
94
}
95