Browse Source

feat(core): 添加基础实体类并启用严格类型声明- 在 BaseEntity 类中添加严格类型声明
- 为 BaseEntity 添加注释说明
- 继续使用 think\Entity 作为父类

runphp 4 months ago
parent
commit
d508e82f55
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/Entity/BaseEntity.php

+ 4 - 0
src/Entity/BaseEntity.php

@@ -1,9 +1,13 @@
 <?php
+declare(strict_types=1);
 
 namespace SixShop\Core\Entity;
 
 use think\Entity;
 
+/**
+ * 基础实体类
+ */
 abstract class BaseEntity extends Entity
 {
     protected function getOptions(): array