Beispiel #1
0
<?php

require __DIR__ . '/classes/ClassLoader.class.php';
ClassLoader::init('.', __DIR__ . '/classes');
//$t = new TestClass();
$ann = Annotations::getClassAnnotations('TestClass');
$ann->setFlags(ArrayObject::ARRAY_AS_PROPS);
print_r($ann->MegaAnnotation);
$pann = Annotations::getPropertyAnnotations('User', 'name');
Beispiel #2
0
 /**
  * Get all annotations for the given class.
  *
  * @param string $class Fully qualified class name
  *
  * @return ConfigObject ConfigObject instance containing all annotations.
  */
 protected function annotationsFromClass($class)
 {
     return Annotations::getClassAnnotations($class);
 }