Introduction

Zend_Reflection Examples

Example #1 Performing reflection on a file

  1. span style="color: #ff0000;">"===> The %s file\n".
  2.     "     has %d lines\n""     It has "":\n""         ""\n""     It has "":\n""         ""\n";
  3. }

Example #2 Performing reflection on a class

  1. span style="color: #ff0000;">"The class level docblock has the short description: %s\n".
  2.     "The class level docblock has the long description:\n%s\n"// Get the declaring file reflection

Example #3 Performing reflection on a method

  1. span style="color: #ff0000;">"Method '%s':\n""Param at position '%d' is of type '%s'\n"

Example #4 Performing reflection on a docblock

  1. span style="color: #ff0000;">"The short description: %s\n".
  2.     "The long description:\n%s\n""Annotation tag '%s' has the description '%s'\n",
  3.         $tag->getName(),
  4.         $tag->getDescription()
  5.     );
  6. }

Introduction