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.

DistributionModel.php 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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\Column(type="integer")
  21. */
  22. protected $cycleNumber;
  23. /**
  24. * @ORM\Column(type="integer")
  25. */
  26. protected $year;
  27. /**
  28. * @ORM\Column(type="string", length=32)
  29. */
  30. protected $cycleType;
  31. public function __toString()
  32. {
  33. return $this->getCycleNumber().'/'.$this->getYear();
  34. }
  35. public function getCycleNumber(): ?int
  36. {
  37. return $this->cycleNumber;
  38. }
  39. public function setCycleNumber(int $cycleNumber): self
  40. {
  41. $this->cycleNumber = $cycleNumber;
  42. return $this;
  43. }
  44. public function getYear(): ?int
  45. {
  46. return $this->year;
  47. }
  48. public function setYear(int $year): self
  49. {
  50. $this->year = $year;
  51. return $this;
  52. }
  53. public function getCycleType(): ?string
  54. {
  55. return $this->cycleType;
  56. }
  57. public function setCycleType(string $cycleType): self
  58. {
  59. $this->cycleType = $cycleType;
  60. return $this;
  61. }
  62. }