rfc:reflection_doccomment_annotations

Differences

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

Link to this comparison view

Next revision
Previous revision
rfc:reflection_doccomment_annotations [2013/01/06 21:53] – created yahavgbrfc:reflection_doccomment_annotations [2017/09/22 13:28] (current) – external edit 127.0.0.1
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.1357509206.txt.gz · Last modified: 2017/09/22 13:28 (external edit)