Passed
Push — master ( 2e8710...63620a )
by Alec
03:04
created

CircleSpinner::getStyles()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php declare(strict_types=1);
2
3
namespace AlecRabbit\Spinner;
4
5
use AlecRabbit\ConsoleColour\Contracts\Styles;
6
use AlecRabbit\Spinner\Core\AbstractSpinner;
7
use AlecRabbit\Spinner\Core\Styling;
8
9
class CircleSpinner extends AbstractSpinner
10
{
11
    /** {@inheritDoc} */
12 1
    protected function getSymbols(): array
13
    {
14
        return [
15 1
            '◐',
16
            '◐',
17
            '◓',
18
            '◓',
19
            '◑',
20
            '◑',
21
            '◒',
22
            '◒',
23
        ];
24
    }
25
26 1
    protected function getStyles(): array
27
    {
28
        return [
29 1
            Styling::COLOR256_SPINNER_STYLES => [226, 227, 228, 229, 230, 231, 230, 229, 228, 227, 226],
30 1
            Styling::COLOR_SPINNER_STYLES => [Styles::LIGHT_YELLOW],
31
        ];
32
    }
33
34
}
35