May
27
2024
php代码注释里申明变量类型或给类增加方法注释
作者:
绝缘体.. 发布:
2024-05-27 11:07 分类:
未分类 阅读:
抢沙发
php在代码的注释里申明变量类型。
/* @var $searchModel common\models\product\search\ProductArchiveSearch */
或者:
/* @var $searchModel \common\models\product\search\ProductArchiveSearch */
php在代码里给类增加方法注释。
/**
* @method int sum(string $table, string $field, array $conditions = [])
* @method int min(string $table, string $field, array $conditions = [])
* @method int max(string $table, string $field, array $conditions = [])
* @method float avg(string $table, string $field, array $conditions = [])
*/
class MySQL {......}
微信扫一扫,打赏作者吧~