功能描述
使用 reflex 工具类可以快速的对某个指定的类文件或对象进行反射,类文件结构一目了然!
部署说明将 reflex.php 文件直接部署到 phpGrace/tools/ 文件夹下
使用说明使用 phpGrace\tools\reflex 类的静态方法 r,参数:类或对象。<?php
class indexController extends grace{
public function index(){
$mailer = new phpGrace\tools\mailer();
phpGrace\tools\reflex::r($mailer);
}
}
反射结果类似:文件位置 :
D:\web\localhost\phpGrace\tools\mailer.php
属性 :
Property [ default private $mailConfig ]
类内常量 :
方法 :
Method [ user, ctor public method __construct ] { @@ D:\web\localhost\phpGrace\tools\mailer.php 24 - 32 }
Method [ user public method send ] { @@ D:\web\localhost\phpGrace\tools\mailer.php 34 - 77 - Parameters [4] ......