Passed
Push — master ( dbaa53...0b91ad )
by Alec
02:46
created

ClockSpinner::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
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace AlecRabbit\Spinner;
4
5
use AlecRabbit\Spinner\Contracts\SpinnerStyles;
6
use AlecRabbit\Spinner\Contracts\SpinnerSymbols;
7
use AlecRabbit\Spinner\Contracts\StylesInterface;
8
use AlecRabbit\Spinner\Core\Spinner;
9
10
class ClockSpinner extends Spinner
11
{
12
    protected const ERASING_SHIFT = 2;
13
    protected const INTERVAL = 0.1;
14
    protected const SYMBOLS = SpinnerSymbols::CLOCK;
15
    protected const
16
        STYLES =
17
        [
18
            StylesInterface::COLOR256_SPINNER_STYLES => SpinnerStyles::DISABLED,
19
            StylesInterface::COLOR_SPINNER_STYLES => SpinnerStyles::DISABLED,
20
            StylesInterface::COLOR_MESSAGE_STYLES => SpinnerStyles::C_DARK,
21
            StylesInterface::COLOR_PERCENT_STYLES => SpinnerStyles::C_DARK,
22
        ];
23
}
24