-
-
Save mirzap/4991247 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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