Bank.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. * @property $alias
  19. *
  20. */
  21. class Bank extends BaseModel
  22. {
  23. protected $table = 'banks';
  24. protected $fillable = ['member_id', 'channel', 'bank_name', 'account', 'card_no', '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 getAlias(): string
  50. {
  51. return $this->alias;
  52. }
  53. public function getCardNo(): string
  54. {
  55. return $this->card_no;
  56. }
  57. }