Ejemplo n.º 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');
Ejemplo n.º 2
0
 /**
  * Get all annotations for the property name on the given class.
  *
  * @param string $class    Fully qualified class name
  * @param string $property Property name
  *
  * @return ConfigObject ConfigObject instance containing all annotations.
  */
 protected function annotationsFromProperty($class, $property)
 {
     return Annotations::getPropertyAnnotations($class, $property);
 }