您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

LuModel.php 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace Luticate\Utils;
  3. use Illuminate\Database\Eloquent\Collection;
  4. use Illuminate\Database\Eloquent\Model;
  5. /**
  6. * LuModel
  7. *
  8. * @method static LuModel where($column, $operator, $value)
  9. * @method static LuModel orWhere($column, $operator, $value)
  10. * @method static LuModel orderBy($column, $order)
  11. * @method static LuModel take($count)
  12. * @method static LuModel offset($offset)
  13. * @method static LuModel rightJoin($table, $column1, $operator, $column2)
  14. * @method static LuModel leftJoin($table, $column1, $operator, $column2)
  15. * @method static LuModel join($table, $column1, $operator, $column2)
  16. * @method static LuModel groupBy($column)
  17. * @method static LuModel[] get()
  18. * @method static LuModel first()
  19. * @method static int count()
  20. */
  21. abstract class LuModel extends Model
  22. {
  23. /**
  24. * Mapping from DBO model to business model.
  25. * If this model has no DBO equivalent, do nothing in this function
  26. * @return LuDbo
  27. */
  28. public abstract function toDbo();
  29. /**
  30. * @param $dbo LuDbo
  31. * @param $dal LuModel|null
  32. * @return LuModel
  33. */
  34. public abstract function fromDbo($dbo, $dal = null);
  35. }