henzeb/enumhancer

View on GitHub
src/Concerns/Extractor.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Henzeb\Enumhancer\Concerns;

use Henzeb\Enumhancer\Contracts\Mapper;
use Henzeb\Enumhancer\Helpers\EnumExtractor;

trait Extractor
{
    public static function extract(string $text, Mapper|string|null $mapper = null): array
    {
        return EnumExtractor::extract(self::class, $text, $mapper);
    }
}