Skip to content
This repository was archived by the owner on Sep 9, 2019. It is now read-only.
This repository was archived by the owner on Sep 9, 2019. It is now read-only.

Support instance creation, class constants and static members in annotations #36

@thekid

Description

@thekid

Since the implementation of xp-framework/xp-framework#328 the following features are supported (officially - they did work before but behaviour wasn't defined): new T(...), T::CONST and T::$static.

XP Language

[@action(new unittest.actions.IsPlatform("WIN"))]
[@inject(name = self::CONNECTION_DSN)]
[@values([CommandLine::$UNIX, CommandLine::$WINDOWS)]

PHP 5.3+ Syntax

#[@action(new \unittest\actions\IsPlatform("WIN"))]
#[@inject(name = self::CONNECTION_DSN)]
#[@values([CommandLine::$UNIX, CommandLine::$WINDOWS)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions