選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

CreditHistory.php 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. namespace Lc\ShopBundle\Model;
  3. use App\Entity\UserMerchant;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\MappedSuperclass()
  7. */
  8. abstract class CreditHistory extends AbstractEntity
  9. {
  10. /**
  11. * @ORM\Column(type="float")
  12. */
  13. protected $amount;
  14. /**
  15. * @ORM\Column(type="string", length=31)
  16. */
  17. protected $meanPayment;
  18. /**
  19. * @ORM\Column(type="text", nullable=true)
  20. */
  21. protected $comment;
  22. /**
  23. * @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\UserLerchantInterface", inversedBy="creditHistories")
  24. * @ORM\JoinColumn(nullable=false)
  25. */
  26. protected $userMerchant;
  27. public function getAmount(): ?float
  28. {
  29. return $this->amount;
  30. }
  31. public function setAmount(float $amount): self
  32. {
  33. $this->amount = $amount;
  34. return $this;
  35. }
  36. public function getMeanPayment(): ?string
  37. {
  38. return $this->meanPayment;
  39. }
  40. public function setMeanPayment(string $meanPayment): self
  41. {
  42. $this->meanPayment = $meanPayment;
  43. return $this;
  44. }
  45. public function getComment(): ?string
  46. {
  47. return $this->comment;
  48. }
  49. public function setComment(string $comment): self
  50. {
  51. $this->comment = $comment;
  52. return $this;
  53. }
  54. public function getUserMerchant(): ?UserMerchant
  55. {
  56. return $this->userMerchant;
  57. }
  58. public function setUserMerchant(?UserMerchant $userMerchant): self
  59. {
  60. $this->userMerchant = $userMerchant;
  61. return $this;
  62. }
  63. }