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.

92 line
2.0KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Distribution;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\CaracoleBundle\Doctrine\Extension\PayoffTrait;
  5. use Lc\CaracoleBundle\Model\Order\OrderPaymentInterface;
  6. use Lc\CaracoleBundle\Model\Order\OrderRefundInterface;
  7. use Lc\CaracoleBundle\Doctrine\Extension\PayoffInterface;
  8. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  9. use Lc\CaracoleBundle\Model\User\UserMerchantInterface;
  10. use Gedmo\Mapping\Annotation as Gedmo;
  11. use Lc\SovBundle\Doctrine\EntityInterface;
  12. use Lc\SovBundle\Doctrine\Extension\BlameableNullableTrait;
  13. use Lc\SovBundle\Doctrine\Pattern\AbstractLightEntity;
  14. /**
  15. * @ORM\MappedSuperclass()
  16. */
  17. abstract class DistributionModel implements DistributionInterface, EntityInterface
  18. {
  19. /**
  20. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface")
  21. * @ORM\JoinColumn(nullable=false)
  22. */
  23. protected $section;
  24. /**
  25. * @ORM\Column(type="integer")
  26. */
  27. protected $cycleNumber;
  28. /**
  29. * @ORM\Column(type="integer")
  30. */
  31. protected $year;
  32. /**
  33. * @ORM\Column(type="string", length=32)
  34. */
  35. protected $cycleType;
  36. public function getSection(): ?SectionInterface
  37. {
  38. return $this->section;
  39. }
  40. public function setSection(?SectionInterface $section): self
  41. {
  42. $this->section = $section;
  43. return $this;
  44. }
  45. public function getCycleNumber(): ?int
  46. {
  47. return $this->cycleNumber;
  48. }
  49. public function setCycleNumber(int $cycleNumber): self
  50. {
  51. $this->cycleNumber = $cycleNumber;
  52. return $this;
  53. }
  54. public function getYear(): ?int
  55. {
  56. return $this->year;
  57. }
  58. public function setYear(int $year): self
  59. {
  60. $this->year = $year;
  61. return $this;
  62. }
  63. public function getCycleType(): ?string
  64. {
  65. return $this->cycleType;
  66. }
  67. public function setCycleType(string $cycleType): self
  68. {
  69. $this->cycleType = $cycleType;
  70. return $this;
  71. }
  72. }