20220406
This commit is contained in:
77
vendor/hg/apidoc/src/annotation/Rule.php
vendored
Normal file
77
vendor/hg/apidoc/src/annotation/Rule.php
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
namespace hg\apidoc\annotation;
|
||||
|
||||
use Doctrine\Common\Annotations\Annotation;
|
||||
|
||||
abstract class Rule extends Annotation
|
||||
{
|
||||
/**
|
||||
* @var string|array
|
||||
*/
|
||||
public $middleware;
|
||||
|
||||
/**
|
||||
* 后缀
|
||||
* @var string
|
||||
*/
|
||||
public $ext;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $deny_ext;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $https;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $domain;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $complete_match;
|
||||
|
||||
/**
|
||||
* @var string|array
|
||||
*/
|
||||
public $cache;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $ajax;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $pjax;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
public $json;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public $filter;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public $append;
|
||||
|
||||
public function getOptions()
|
||||
{
|
||||
return array_intersect_key(get_object_vars($this), array_flip([
|
||||
'middleware', 'ext', 'deny_ext', 'https', 'domain', 'complete_match', 'cache', 'ajax', 'pjax', 'json', 'filter', 'append',
|
||||
]));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user