mirror of
https://gh.wpcy.net/https://github.com/fairpm/aspirecloud.git
synced 2026-06-20 02:22:28 +08:00
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Joost de Valk <joost@altha.nl>
23 lines
457 B
PHP
23 lines
457 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';
|
|
case TYPO3_CORE = 'typo3-core';
|
|
case TYPO3_EXTENSION = 'typo3-extension';
|
|
|
|
/**
|
|
* Get the list of package type values.
|
|
*
|
|
* @return array<string>
|
|
*/
|
|
public static function values(): array
|
|
{
|
|
return array_column(self::cases(), 'value');
|
|
}
|
|
}
|