選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

DistributionModel.php 1.7KB

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