Proposal for "Reflection_Annotation"

» Metadata » Status
» Description
Someone recently proposed adding support for annotations to the PHP Interpreter. Although it would be nice to have this kind of functionality out-of-the-box and built into the interpreter itself this is not necessary.

I started working on a package that exends the Reflection API of PHP 5 by adding getAnnotations(), getAnnotation($name), and hasAnnotation($name) methods to ReflectionClass, ReflectionFunction, ReflectionMethod, and ReflectionProperty.

The syntax for annotations follows the standard for PHP Doc Comments and @foo bar declares an annotation of name "foo" with value "bar".
» Dependencies » Links
» Timeline » Changelog
  • First Draft: 2005-04-20
  • Proposal: 2005-04-20
  • Call for Votes: 2005-05-15
  • Sebastian Bergmann
    [2005-04-20 08:18 UTC]

    Renamed the package to Reflection_Annotation.