You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 satır
1.7KB

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