Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

PayoffTrait.php 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. }