示例#1
0
<?php

define('TEST_MVC', false);
require __DIR__ . '/boot.php';
$test = <<<EOF
/**
 * @name test
 * @description hello world
 * @param leno int the leno description
 */
EOF;
$parser = new \Leno\Doc\CommentParser($test);
var_dump($parser->getDescription());
var_dump($parser->getParam());
var_dump($parser->getTags());
示例#2
0
<?php

echo $this->class->getName() . "\n";
$comment = new \Leno\Doc\CommentParser($this->class->getDocComment());
echo $comment->getDescription() . "\n";
echo "---------------------------------------\n";
foreach ($this->class->getMethods() as $method) {
    echo (new \Leno\Doc\Helper\MethodHelper($method))->profile($this->class->getName()) . "\n";
    /*
        $comment = new \Leno\Doc\CommentParser($method->getDocComment());
        echo $comment->getDescription() . "\n";
    */
}
echo "---------------------------------------\n";