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

MoonSpinner

Complexity

Total Complexity 0

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 10
dl 0
loc 12
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 MoonSpinner extends Spinner
11
{
12
    protected const ERASING_SHIFT = 2;
13
    protected const INTERVAL = 0.1;
14
    protected const SYMBOLS = SpinnerSymbols::MOON;
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