Skip to content

Metadata list #33

@ph-il

Description

@ph-il

Is there a way to have a metadata lists likes the options functions.

Exemple : I have a enum
/**

  • @method string description()
    */#[Meta(Description::class)]
    enum AccessType: string
    {
    use InvokableCases;
    use Options;
    use Metadata;

    #[Description('Need to register')]
    case INSCRIPTION = 'INSCRIPTION';

    #[Description('By invite Only')]
    case INVITE = 'INVITE';

    #[Description('Open to everyone')]
    case OPENED = 'OPENED';

}

I would like to have an option that will give me values and descriptions, or names and descriptions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions