No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

74 líneas
1.7KB

  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. public function getSection(): ?SectionInterface
  33. {
  34. return $this->section;
  35. }
  36. public function setSection(?SectionInterface $section): self
  37. {
  38. $this->section = $section;
  39. return $this;
  40. }
  41. public function getCycleNumber(): ?int
  42. {
  43. return $this->cycleNumber;
  44. }
  45. public function setCycleNumber(int $cycleNumber): self
  46. {
  47. $this->cycleNumber = $cycleNumber;
  48. return $this;
  49. }
  50. public function getYear(): ?int
  51. {
  52. return $this->year;
  53. }
  54. public function setYear(int $year): self
  55. {
  56. $this->year = $year;
  57. return $this;
  58. }
  59. }