rfc:annotations-in-docblock
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:annotations-in-docblock [2011/05/11 18:39] – guilhermeblanco | rfc:annotations-in-docblock [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Request for Comments: | + | ====== Request for Comments: |
* Version: 1.0 | * Version: 1.0 | ||
* Date: 2011-05-11 | * Date: 2011-05-11 | ||
* Author: Guilherme Blanco < | * Author: Guilherme Blanco < | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 60: | Line 60: | ||
* Foo class. | * Foo class. | ||
* | * | ||
- | * @Entity {repositoryClass: | + | * @Entity {"repositoryClass": " |
- | * @Table | + | * @Table |
* | * | ||
* @author " | * @author " | ||
Line 136: | Line 136: | ||
Please notice that ReflectionParameter would now accept docblock to support Annotations. This is something that still needs to be discussed. | Please notice that ReflectionParameter would now accept docblock to support Annotations. This is something that still needs to be discussed. | ||
+ | |||
+ | ===== Consuming ===== | ||
+ | |||
+ | <code php> | ||
+ | $reflClass = new \ReflectionClass(' | ||
+ | var_dump($reflClass-> | ||
+ | |||
+ | /* | ||
+ | array(3) { | ||
+ | [" | ||
+ | object(ReflectionAnnotation)# | ||
+ | [" | ||
+ | object(stdClass)# | ||
+ | [" | ||
+ | string(13) " | ||
+ | } | ||
+ | } | ||
+ | [" | ||
+ | object(ReflectionAnnotation)# | ||
+ | [" | ||
+ | object(stdClass)# | ||
+ | [" | ||
+ | string(4) " | ||
+ | } | ||
+ | } | ||
+ | [" | ||
+ | object(ReflectionAnnotation)# | ||
+ | [" | ||
+ | string(16) " | ||
+ | } | ||
+ | } | ||
+ | */ | ||
+ | </ | ||
===== Patch ===== | ===== Patch ===== |
rfc/annotations-in-docblock.1305139192.txt.gz · Last modified: 2017/09/22 13:28 (external edit)