ReflectionClass
PHP Manual

ReflectionClass::getDocComment

(PHP 5 >= 5.1.0, PHP 7)

ReflectionClass::getDocCommentGets doc comments

Descrierea

public string ReflectionClass::getDocComment ( void )

Gets doc comments from a class.

Avertizare

Această funcție nu este documentată în prezent; este disponibilă numai lista sa de argumente.

Parametri

Această funcție nu are parametri.

Valorile întoarse

The doc comment if it exists, otherwise FALSE

Exemple

Example #1 ReflectionClass::getDocComment() example

<?php
/** 
* A test class
*
* @param  foo bar
* @return baz
*/
class TestClass { }

$rc = new ReflectionClass('TestClass');
var_dump($rc->getDocComment())
?>

Exemplul de mai sus va afișa:

string(55) "/** 
* A test class
*
* @param  foo bar
* @return baz
*/"

A se vedea și


ReflectionClass
PHP Manual