Skip to content

Add method getAsString #58

@gsouf

Description

@gsouf

Currently there is a method AnnotationBag::getAsArray()
That's very convenient when we want to make sure to retrieve an array.

What's about adding a method
AnnotationBag::getAsString() or AnnotationBag::getAsRawString()
to get the annotation value as a string. Even if it's in array or object annotation,
we sometime want to get this value as the raw original string.

We could do that by changing the parser. But sometime we can need both of the ouput
depending on the annotation name.

What's your opinion ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions