Initial commit

This commit is contained in:
2022-09-22 01:49:58 +02:00
commit e58591a874
10 changed files with 819 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<?php
namespace NoccyLabs\Spinner\Style;
class BrailleDotsStyle implements StyleInterface
{
public function getFrames(): array
{
return [
mb_chr(0x2839),
mb_chr(0x283c),
mb_chr(0x2836),
mb_chr(0x2827),
mb_chr(0x280f),
mb_chr(0x281b),
];
}
}

View File

@ -0,0 +1,16 @@
<?php
namespace NoccyLabs\Spinner\Style;
class RollingBallStyle implements StyleInterface
{
public function getFrames(): array
{
return [
mb_chr(0x25d0),
mb_chr(0x25d3),
mb_chr(0x25d1),
mb_chr(0x25d2),
];
}
}

View File

@ -0,0 +1,16 @@
<?php
namespace NoccyLabs\Spinner\Style;
class SpinnerStyle implements StyleInterface
{
public function getFrames(): array
{
return [
mb_chr(0x25dc).' ',
' '.mb_chr(0x25dd),
' '.mb_chr(0x25de),
mb_chr(0x25df).' ',
];
}
}

View File

@ -0,0 +1,8 @@
<?php
namespace NoccyLabs\Spinner\Style;
interface StyleInterface
{
public function getFrames(): array;
}