- var_dump: documentation ( source)
<?php
class X {
/**
* @annotation1
*/
// Some comment
public
$x = "x",
$y = 'y',
/** @annotation2 */
$z = 'z'
;
}
$reflection = new ReflectionProperty('\X', 'x');
var_dump($reflection->getDocComment());
$reflection = new ReflectionProperty('\X', 'y');
var_dump($reflection->getDocComment());