Поменял структуру проекта для расширения задачи с приемом
This commit is contained in:
16
src/Color.php
Normal file
16
src/Color.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace SvedenParser;
|
||||
|
||||
enum Color : string
|
||||
{
|
||||
case WHITE = "\033[0m";
|
||||
case GREEN = "\033[92m";
|
||||
case RED = "\033[91m";
|
||||
case BLUE = "\033[94m";
|
||||
case YELLOW = "\033[33m";
|
||||
|
||||
public function tostring(): string
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user