7 Star 19 Fork 3

Josin / phpdoc-parser

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
xannotation.php 545 Bytes
一键复制 编辑 原始数据 按行查看 历史
liqiongfan 提交于 2018-07-12 02:03 . Add the extension
<?php
/**
* Class Hello * hello * world
*
* This is the first time to do the job for the annotation
* License: LGPL-v3
*
* ***@type(name="Hello", age="world")
* @version(value="v2.1.23")
*/
class Hello
{
/**
* @Route("hello/world")
* @method("vs")
*/
public function world()
{
}
}
$xan = new Xan();
print_r($xan->getClassDocComment(Hello::class));
echo PHP_EOL;
print_r($xan->getMethodDocComment(Hello::class, "world"));
echo PHP_EOL;
$xan->parseDocComment($xan->getClassDocComment(Hello::class));
C
1
https://gitee.com/josinli/phpdoc-parser.git
git@gitee.com:josinli/phpdoc-parser.git
josinli
phpdoc-parser
phpdoc-parser
master

搜索帮助