NodeAnnotation.php 534 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\admin\service\annotation;
  3. use Attribute;
  4. /**
  5. * action 节点注解类
  6. */
  7. #[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_METHOD| Attribute::TARGET_PROPERTY)]
  8. final class NodeAnnotation
  9. {
  10. /** 过滤节点 */
  11. const IGNORE_NODE = 'NODE';
  12. /**
  13. * @param string $title
  14. * @param bool $auth 是否需要权限
  15. * @param string|array $ignore
  16. */
  17. public function __construct(public string $title = '', public bool $auth = true, public string|array $ignore = '')
  18. {
  19. }
  20. }