getDocComment(); echo "\nStructure Name of Class = " . get_class($this); echo "\n\nMethods:"; $methods = array_reverse($reflection->getMethods()); foreach ($methods as $key => $value) { /** @var \ReflectionMethod $value */ //Don't print the Constructor if ($value->isPublic() && $value->getName() != "__construct" && $value->getName() != "getUsage") { echo "\n"; echo preg_replace('/\t/', '', $value->getDocComment()); echo "\n \$result = " . $value->getName() . "(); \n"; $parameters = $value->getParameters(); foreach ($parameters as $parameter) { echo $parameter . "\n"; } } } echo "\n"; //TODO add public Constands and Properties } }