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

39 行
837B

  1. <?php
  2. namespace App\Models\Feature;
  3. use App\Models\HistoryModel;
  4. use Illuminate\Database\Query\Builder;
  5. use Illuminate\Support\Carbon;
  6. /**
  7. * @property ?Carbon $updated_at
  8. * @property ?Carbon $created_at
  9. * @property ?string $updated_by
  10. * @property ?string $created_by
  11. */
  12. interface IModelFeature
  13. {
  14. public static function getBuilder(string $name = 'main'): Builder;
  15. public static function getTableName(): string;
  16. public function copy(IModelFeature $from): static;
  17. public function getAttributeKeys(): array;
  18. public function isNotSavedModel(): bool;
  19. public function getHistory(): HistoryModel|null;
  20. /**
  21. * モデルの和名を取得する
  22. *
  23. * @return string
  24. */
  25. public function getModelName(): string;
  26. public function getChangeLogMessage($before, $after): string|null;
  27. }