Console Tool Refactoring
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Options;
|
||||
|
||||
enum Short: string
|
||||
{
|
||||
case ACTION = 'a';
|
||||
case FILE = 'f';
|
||||
|
||||
public static function asString(): string
|
||||
{
|
||||
return implode(':', array_column(self::cases(), 'value')) . ':';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user