mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireCloud.git
synced 2026-07-16 11:26:56 +08:00
21 lines
375 B
PHP
21 lines
375 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Enums;
|
|
|
|
enum PackageType: string
|
|
{
|
|
case CORE = 'wp-core';
|
|
case PLUGIN = 'wp-plugin';
|
|
case THEME = 'wp-theme';
|
|
|
|
/**
|
|
* Get the list of package type values.
|
|
*
|
|
* @return array<string>
|
|
*/
|
|
public static function values(): array
|
|
{
|
|
return array_column(self::cases(), 'value');
|
|
}
|
|
}
|