| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | abstract class DataObject implements TableStructAwareInterface, ArrayDataInterface, Middleware |
||
| 20 | { |
||
| 21 | use ArrayDataTrait; |
||
| 22 | use TableStructAwareTrait; |
||
| 23 | use TableMiddlewareTrait; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * 检查字段是否存在 |
||
| 27 | * |
||
| 28 | * @param string $name |
||
| 29 | * @return boolean |
||
| 30 | */ |
||
| 31 | public function checkFieldExist(string $name) |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * 获取序列化对象 |
||
| 38 | * |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | public function jsonSerialize() |
||
| 46 |