【发布时间】:2011-01-22 19:28:53
【问题描述】:
我正在寻找可以有效勾勒出一个类的函数或类:
class MyClass{
/*
* Perhaps include the function comments
* in the function.
*/
function mainFunction(){
//Does Something
}
function functionWithArgs($arg1,$arg2=false){
//Does Something
//The function I want will give e the arguments w/default values
}
}
是否存在可以让我以某种方式访问有关此类甚至文件的信息的函数或库。
例如
get_file_outline('fileWithAboveClass.php');
或
get_class_outline('MyClass');
有没有人知道,或者知道如何轻松编写这个?
【问题讨论】:
标签: php architecture object class-design outline