Answers for "php get docblock with reflection"

PHP
0

php get docblock with reflection

class MyClass
{
public function __construct(
/** @var string */
public $a,
) {}
}
$property = new ReflectionProperty(MyClass::class, 'a');
$property->getDocComment(); // "/** @var string */"
Posted by: Guest on September-20-2021

Code answers related to "php get docblock with reflection"

Browse Popular Code Answers by Language