Bank.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Builder;
  4. use Illuminate\Foundation\Auth\User as Authenticatable;
  5. use Illuminate\Notifications\Notifiable;
  6. use Laravel\Sanctum\HasApiTokens;
  7. /**
  8. * Admin
  9. * @mixin Builder
  10. * @method static Builder|static where($column, $operator = null, $value = null, $boolean = 'and')
  11. * @method static Builder|static create($data)
  12. * @property $id
  13. * @property $member_id
  14. * @property $channel
  15. * @property $bank_name
  16. * @property $account
  17. * @property $card_no
  18. *
  19. */
  20. class Bank extends BaseModel
  21. {
  22. protected $table = 'banks';
  23. protected $fillable = ['member_id', 'channel', 'bank_name', 'account', 'card_no', 'qr_image'];
  24. protected $hidden = ['created_at', 'updated_at', 'alias'];
  25. public function getId()
  26. {
  27. return $this->id;
  28. }
  29. public function setMemberId($memberId): void
  30. {
  31. $this->member_id = $memberId;
  32. }
  33. public function getMemberId(): int
  34. {
  35. return $this->member_id;
  36. }
  37. public function getChannel(): string
  38. {
  39. return $this->channel;
  40. }
  41. public function getBankName(): string
  42. {
  43. return $this->bank_name;
  44. }
  45. public function getAccount(): string
  46. {
  47. return $this->account;
  48. }
  49. public function getCardNo(): string
  50. {
  51. return $this->card_no;
  52. }
  53. }