Werbung
ReflectionClass::getDocComment
(PHP 5 >= 5.1.0)
ReflectionClass::getDocComment — Gets doc comments
Beschreibung
public string ReflectionClass::getDocComment
( void
)
Gets doc comments from a class.
Warnung
Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Argumente zur Verfügung.
Parameter-Liste
Diese Funktion hat keine Parameter.
Rückgabewerte
The doc comment if it exists, otherwise FALSE
Beispiele
PHP Code
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
/**
* A test class
*
* @param foo bar
* @return baz
*/
class TestClass { }
$rc = new ReflectionClass('TestClass');
var_dump($rc->getDocComment())
Das oben gezeigte Beispiel erzeugt folgende Ausgabe:
string(55) "/** * A test class * * @param foo bar * @return baz */"