Пользователь
<?php class A { /** * Inline test example * @assert (2,2) == 4 */ private function _add($a,$b) { return $a + $b; } } $refl = new ReflectionClass('A'); $comment = $refl->getMethod('_add')->getDocComment(); echo $comment;