105 satır
2.1KB

  1. <?php
  2. namespace Lc\ShopBundle\Model;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\ShopBundle\Context\OrderPaymentInterface;
  5. use Lc\ShopBundle\Context\ReductionInterface;
  6. /**
  7. * @ORM\MappedSuperclass()
  8. */
  9. trait PayoffTrait
  10. {
  11. /**
  12. * @ORM\Column(type="string", length=255, nullable=true)
  13. */
  14. protected $meanPayment;
  15. /**
  16. * @ORM\Column(type="text", nullable=true)
  17. */
  18. protected $reference;
  19. /**
  20. * @ORM\Column(type="datetime", nullable=true)
  21. */
  22. protected $paidAt;
  23. /**
  24. * @ORM\Column(type="float")
  25. */
  26. protected $amount;
  27. /**
  28. * @ORM\Column(type="text", nullable=true)
  29. */
  30. protected $comment;
  31. public function setMeanPayment(?string $meanPayment): self
  32. {
  33. $this->meanPayment = $meanPayment;
  34. return $this;
  35. }
  36. public function getMeanPayment() : ?string
  37. {
  38. return $this->meanPayment ;
  39. }
  40. public function getReference(): ?string
  41. {
  42. return $this->reference;
  43. }
  44. public function setReference(?string $reference): self
  45. {
  46. $this->reference = $reference;
  47. return $this;
  48. }
  49. public function getPaidAt(): ?\DateTimeInterface
  50. {
  51. return $this->paidAt;
  52. }
  53. public function setPaidAt(?\DateTimeInterface $paidAt): self
  54. {
  55. $this->paidAt = $paidAt;
  56. return $this;
  57. }
  58. public function getAmount(): ?float
  59. {
  60. return $this->amount;
  61. }
  62. public function setAmount(float $amount): self
  63. {
  64. $this->amount = $amount;
  65. return $this;
  66. }
  67. public function getComment(): ?string
  68. {
  69. return $this->comment;
  70. }
  71. public function setComment(?string $comment): self
  72. {
  73. $this->comment = $comment;
  74. return $this;
  75. }
  76. }