解析符合PSR4标准的源码,并生成对应rst文档格式¶
| 属性 | 值 |
|---|---|
| 命名空间 | fize\doc\handler |
| 类名 | ReStructuredText |
| 父类 | fize\doc\DocHandler |
| 方法: |
|---|
| 方法名 | 说明 |
|---|---|
| parse() | 解析 |
| file() | 解析代码文件 |
| dir() | 解析代码文件夹 |
| __construct() | 初始化 |
方法¶
file()¶
解析代码文件
public static function file (
string $file,
string $output,
string $namespace = "",
array $filters = []
)
| 参数: |
|
|---|
dir()¶
解析代码文件夹
public static function dir (
string $dir,
string $output,
string $namespace = "",
array $map = [],
array $filters = []
)
| 参数: |
|
|---|
__construct()¶
初始化
public function __construct (
string $class,
array $filters = []
)
| 参数: |
|
|---|