App\Foundation\Enums\Enum::allAsRegex PHP 메소드

allAsRegex() 공개 정적인 메소드

public static allAsRegex ( ) : string
리턴 string
    public static function allAsRegex() : string
    {
        return collect(static::values())->map(function ($value) {
            return "({$value})";
        })->implode('|');
    }