ReflectionClass
PHP Manual

ReflectionClass::getDocComment

(PHP 5 >= 5.1.0)

ReflectionClass::getDocCommentGets doc comments

Описание

public string ReflectionClass::getDocComment ( void )

Gets doc comments from a class.

Предупреждение

Към момента тази функция не е документирана; наличен е единствено списъкът с аргументите й.

Параметри

Тази функция няма параметри.

Връщани стойности

The doc comment if it exists, otherwise FALSE

Примери

Example #1 ReflectionClass::getDocComment example

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

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

Примерът по-горе ще изведе:

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

Вж. също


ReflectionClass
PHP Manual