
Untitled
By: a guest on
May 11th, 2012 | syntax:
None | size: 0.61 KB | hits: 11 | expires: Never
[Inherit]
class ConfigAnnotation extends ReflectionAnnotation {}
class DocAnnotation extends ReflectionAnnotation {}
[ConfigAnnotation("myfile.conf")]
[DocAnnotation("I'm the base abstract class")]
abstract class TestBase {
}
class Test extends TestBase {
}
// When you get the Test annotations you don't want to inherit the DocAnnotation class but you do want to get the
// Config one. So some Annotations have to be applied on their children because it make sense but some not like
// ConfigAnnotation
$r = new ReflectionClass('Test');
$r->getAnnotations() will return array(ConfigAnnotation);