I'm wondering if there is a way to retrieve doc-block contents of an arbitrary line of code. Say, there is a line which is neither a class, method, constant, nor function declaration and it is documented with the docblock format.
/**
* This is for arbitrary contents.
*
* Trying to see if custom doc-blocks can be included.
*
* @package CustomLine
*/
doAction( 'custom_line' );
When I print out the contents of $broker by doing like print_r( $broker, true );, I see the doc-block of such an above case is parsed and stored in the object. What I want to do is to list doc-block contents of generic lines which belong to a certain package or namespace. Is there a method like $broker->getMisc() or something?
Hello, thanks for the great tool.
I could pull doc-block descriptions of a class like this.
I'm wondering if there is a way to retrieve doc-block contents of an arbitrary line of code. Say, there is a line which is neither a class, method, constant, nor function declaration and it is documented with the docblock format.
When I print out the contents of
$broker
by doing likeprint_r( $broker, true );
, I see the doc-block of such an above case is parsed and stored in the object. What I want to do is to list doc-block contents of generic lines which belong to a certain package or namespace. Is there a method like$broker->getMisc()
or something?