Example #1
0
 private static function getDeclaredAnnotations()
 {
     if (!self::$annotations) {
         self::$annotations = array();
         foreach (get_declared_classes() as $class) {
             if (is_subclass_of($class, 'Annotation') || $class == 'Annotation') {
                 self::$annotations[] = $class;
             }
         }
     }
     return self::$annotations;
 }
Example #2
0
 public static function ignore(array $annotations)
 {
     self::$ignored = array_combine($annotations, array_fill(0, count($annotations), true));
 }