Zend_Reflection Examples
Example #1 Performing reflection on a file
span style="color: #ff0000;">"===> The %s file\n".
" has %d lines\n"" It has "":\n"" ""\n"" It has "":\n"" ""\n";
}
Example #2 Performing reflection on a class
span style="color: #ff0000;">"The class level docblock has the short description: %s\n".
"The class level docblock has the long description:\n%s\n"// Get the declaring file reflection
Example #3 Performing reflection on a method
span style="color: #ff0000;">"Method '%s':\n""Param at position '%d' is of type '%s'\n"
Example #4 Performing reflection on a docblock
span style="color: #ff0000;">"The short description: %s\n".
"The long description:\n%s\n""Annotation tag '%s' has the description '%s'\n",
$tag->getName(),
$tag->getDescription()
);
}
|
|