コード例 #1
0
ファイル: annotationdriver.php プロジェクト: danielcdev/orm
 public static function parseAnnotations($class)
 {
     $schema = array();
     $reflect = new ReflectionClass($class);
     $classProperties = $reflect->getProperties(ReflectionProperty::IS_PRIVATE | ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_PUBLIC);
     foreach ($classProperties as $property) {
         $schema = array_merge($schema, AnnotationDriver::extractAnnotationValues($property, str_replace(str_split("/*"), "", $property->getDocComment())));
     }
     return $schema;
 }