Skip to content

Instantly share code, notes, and snippets.

@mirzap
Forked from dhrrgn/TestClass.php
Created February 19, 2013 23:29
Show Gist options
  • Save mirzap/4991247 to your computer and use it in GitHub Desktop.
Save mirzap/4991247 to your computer and use it in GitHub Desktop.
<pre><?php
include 'Annotated/ReflectionClass.php';
include 'TestClass.php';
$refClass = new Annotated\ReflectionClass('TestClass');
$docComment = $refClass->getDocComment();
var_dump($docComment->getAttributes());
echo "\n".$docComment->getLongDescription();
?></pre>
array(3) {
["package"]=>
string(9) "Annotated"
["subpackage"]=>
string(4) "Test"
["author"]=>
string(12) "Dan Horrigan"
}
This is just a test class for the Annotated\ReflectionClass
to use.
Foo::bar();
<?php
/**
* TestClass
*
* This is just a test class for the Annotated\ReflectionClass
* to use.
*
* Foo::bar();
*
* @package Annotated
* @subpackage Test
* @author Dan Horrigan
*/
class TestClass {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment