Added more styles
This commit is contained in:
18
src/Style/BrailleBounceStyle.php
Normal file
18
src/Style/BrailleBounceStyle.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace NoccyLabs\Spinner\Style;
|
||||
|
||||
class BrailleBounceStyle implements StyleInterface
|
||||
{
|
||||
public function getFrames(): array
|
||||
{
|
||||
return [
|
||||
mb_chr(0x2809),
|
||||
mb_chr(0x2812),
|
||||
mb_chr(0x2824),
|
||||
mb_chr(0x28c0),
|
||||
mb_chr(0x2824),
|
||||
mb_chr(0x2812),
|
||||
];
|
||||
}
|
||||
}
|
16
src/Style/SpinningBarStyle.php
Normal file
16
src/Style/SpinningBarStyle.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace NoccyLabs\Spinner\Style;
|
||||
|
||||
class SpinningBarStyle implements StyleInterface
|
||||
{
|
||||
public function getFrames(): array
|
||||
{
|
||||
return [
|
||||
"/",
|
||||
"-",
|
||||
"\\",
|
||||
"|",
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user