1
0
mirror of https://github.com/php/pie.git synced 2026-03-24 07:22:17 +01:00
Files
archived-pie/src/ExtensionType.php
2024-07-22 16:00:06 +01:00

18 lines
409 B
PHP

<?php
declare(strict_types=1);
namespace Php\Pie;
/** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */
enum ExtensionType: string
{
case PhpModule = 'php-ext';
case ZendExtension = 'php-ext-zend';
public static function isValid(string $toBeChecked): bool
{
return self::tryFrom($toBeChecked) !== null;
}
}