Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Improve documentation #22

@berturion

Description

@berturion

Hi,
In Java Styles enumeration implementations, members are called with static methods that are not explicitly declared. So, in IDE like Eclipse PHP or other, those methods are not listed for auto-completion.

I found that adding appropriate PHPDocumentor doc blocks resolves this issue.

For example, if you have those members in a Exemple class extending AbstractMultiton:

Exemple::FOO()
Exemple::BAR()

You can add this doc block:

/**
 * @method static Exemple FOO()
 * @method static Exemple BAR()
 */
class Exemple extends AbstractMultiton
{
    (...)
}

Trust me, it is very useful !

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