Zend_Reflection-Introduction.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect1 id="zend.reflection.introduction">
  4. <title>Introduction</title>
  5. <para>
  6. <classname>Zend_Reflection</classname> is a drop-in extension to <acronym>PHP</acronym>'s own <ulink
  7. url="http://php.net/reflection">Reflection <acronym>API</acronym></ulink>, providing
  8. several additional features:
  9. </para>
  10. <itemizedlist>
  11. <listitem><para>
  12. Ability to retrieve return values types.
  13. </para></listitem>
  14. <listitem><para>
  15. Ability to retrieve method and function parameter types.
  16. </para></listitem>
  17. <listitem><para>
  18. Ability to retrieve class property types.
  19. </para></listitem>
  20. <listitem><para>
  21. DocBlocks gain a Reflection class, allowing introspection of
  22. docblocks. This provides the ability to determine what annotation
  23. tags have been defined as well as to retrieve their values, and the
  24. ability to retrieve the short and long descriptions.
  25. </para></listitem>
  26. <listitem><para>
  27. Files gain a Reflection class, allowing introspection of <acronym>PHP</acronym> files.
  28. This provides the ability to determine what functions and classes
  29. are defined in a given file, as well as to introspect them.
  30. </para></listitem>
  31. <listitem><para>
  32. Ability to override any Reflection class with your own variant, for
  33. the entire reflection tree you create.
  34. </para></listitem>
  35. </itemizedlist>
  36. <para>
  37. In general, <classname>Zend_Reflection</classname> works just like the standard
  38. Reflection <acronym>API</acronym>, but provides a few additional methods for retrieving
  39. artifacts not defined in the Reflection <acronym>API</acronym>.
  40. </para>
  41. </sect1>