Changeset 724
- Timestamp:
- 06/10/07 11:55:46 (1 year ago)
- Files:
-
- trunk/examples/docroot/reflection/annotations.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/examples/docroot/reflection/annotations.php
r711 r724 83 83 84 84 define('MY_CONSTANT', 'This is a constant.'); 85 85 86 /** 86 87 * Class that makes use of the Foo annotation and a constant. … … 89 90 */ 90 91 class ConstantAnnotation { 92 } 93 94 class ClazzWithConstant 95 { 96 const FOO = 'This is a class constant.'; 97 } 98 99 /** 100 * Class that makes use of the Foo annotation and a class constant. 101 * 102 * @Foo(bar=ClazzWithConstant::FOO, baz=false) 103 */ 104 class AnotherConstantAnnotation { 91 105 } 92 106 … … 103 117 checkForFoo('MyClass'); 104 118 checkForFoo('ConstantAnnotation'); 119 checkForFoo('AnotherConstantAnnotation'); 105 120 checkForFoo('MyClass2'); 106 121 print "</pre>";
