Class MyParent is in file ".$x->getFileName().
" and starts at col: ".$x->getStartColumn().
", line: ".$x->getStartLine().
", filepos: ".$x->getStartPosition()."
";
highlight_string('getDeclaration());
echo '
';
// get information about the parent class
$x = new AdvancedReflectionClass('MyParent');
$x = $x->getParentClass();
echo
"Class GenericParent is in file ".$x->getFileName().
" and starts at col: ".$x->getStartColumn().
", line: ".$x->getStartLine().
", filepos: ".$x->getStartPosition()."
";
highlight_string('getDeclaration());
echo '
';
// get information about the interface
$x = new AdvancedReflectionClass('Test');
echo
"Interface Test is in file ".$x->getFileName().
" and starts at col: ".$x->getStartColumn().
", line: ".$x->getStartLine().
", filepos: ".$x->getStartPosition()."
";
highlight_string('getDeclaration());
echo '
';
// get information about the class method
$x = new AdvancedReflectionMethod('MyParent', '__construct');
echo
"MyParent\__construct() is in file ".$x->getFileName().
" and starts at col: ".$x->getStartColumn().
", line: ".$x->getStartLine().
", filepos: ".$x->getStartPosition()."
";
highlight_string('getDeclaration());
echo '
';
// get information about the function
$x = new AdvancedReflectionFunction('tester');
echo
"Function tester() is in file ".$x->getFileName().
" and starts at col: ".$x->getStartColumn().
", line: ".$x->getStartLine().
", filepos: ".$x->getStartPosition()."
";
highlight_string('getDeclaration());
?>