ReflectionClass
PHP Manual

ReflectionClass::getDocComment

(PHP 5 >= 5.1.0)

ReflectionClass::getDocCommentدریافت توضیحات doc

Description

public string ReflectionClass::getDocComment ( void )

دریافت توضیحات doc کلاس.

Warning

This function is currently not documented; only its argument list is available.

Parameters

This function has no parameters.

Return Values

دریافت توضیحات اگر وجود داشته باشند در غیر این صورت FALSE

Examples

Example #1 مثال ReflectionClass::getDocComment()

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

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

The above example will output:

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

See Also


ReflectionClass
PHP Manual