rfc:reflection_doccomment_annotations

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
rfc:reflection_doccomment_annotations [2013/01/06 21:53] – created yahavgbrfc:reflection_doccomment_annotations [2013/01/06 22:01] yahavgb
Line 46: Line 46:
 $han = new ReflectionClass("User"); $han = new ReflectionClass("User");
  
-print_r($han->getAllAnnotations()); // Array( [Table] => Users )+print_r($han->getAnnotations()); // Array( [Table] => Users )
  
 print_r($han->getProperty("name")->getAnnotations()); // Array( [var] => "string", [MaxLength] => 255, [Type] => varchar ) print_r($han->getProperty("name")->getAnnotations()); // Array( [var] => "string", [MaxLength] => 255, [Type] => varchar )
Line 89: Line 89:
 ===== List of methods to implement ===== ===== List of methods to implement =====
  
-  * getAllAnnotations()+  * getAnnotations()
   * getAnnotation(string annotationName)   * getAnnotation(string annotationName)
   * hasAnnotation(string annotationName)   * hasAnnotation(string annotationName)
rfc/reflection_doccomment_annotations.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1