<% @enums.each do |enum| -%>
<%= enum[:name].split('\\').join('/') %>.php
<?php

declare(strict_types=1);

/**
 * This code was auto-generated by {this script}[https://github.com/cucumber/messages/blob/main/jsonschema/scripts/codegen.rb]
 */

<%- namespaces = enum[:name].split('\\') -%>
namespace Cucumber\Messages\<%= namespaces.slice(0,1)[0] %>;

enum <%= namespaces[-1] %>: string
{
<%- enum[:values].each_with_index do |value, index| -%>
    case <%= enum_constant(value) %> = '<%= value %>';
<%- end -%>
}
<%- end -%>
