phpzlc add

This commit is contained in:
jay
2020-11-06 10:55:18 +08:00
parent 9cfe4f852a
commit 409b320632
5 changed files with 94 additions and 0 deletions
@@ -0,0 +1,37 @@
<?php
/**
* PhpStorm.
* User: Jay
* Date: 2020/10/20
*/
namespace App\Document;
class Config
{
/**
* @var string 标题
*/
public static $title = '演示';
/**
* @var string 出版商
*/
public static $publishing;
/**
* @var string 说明
*/
public static $explain;
/**
* @var string 注意
*/
public static $note;
/**
* @var string 附录
*/
public static $appendix;
}
@@ -0,0 +1,24 @@
<?php
/**
* PhpStorm.
* User: Jay
* Date: 2020/10/20
*/
namespace App\Document;
use PHPZlc\Document\Document;
class DomeDocument extends Document
{
public function domeAction()
{
$this->add()
->setTitle('演示接口')
->setUrl('/dome')
->setReturnType('html')
->setReturn('演示接口')
->generate();
}
}