- var_dump: documentation ( source)
<?php
trait T {
/**
* @Hello()
*/
private $x = 5;
}
class C {
use T;
/**
* @Goodbye()
*/
private $x = 5;
}
$rt = new \ReflectionProperty('T', 'x');
$rc = new \ReflectionProperty('C', 'x');
var_dump($rt->getDocComment());
var_dump($rc->getDocComment());