rfc:reflection_doccomment_annotations

Differences

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

Link to this comparison view

rfc:reflection_doccomment_annotations [2013/01/06 22:53]
yahavgb created
rfc:reflection_doccomment_annotations [2013/01/06 23:01] (current)
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.1357509206.txt.gz · Last modified: 2013/01/06 22:53 by yahavgb