Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

82 rindas
1.7KB

  1. <?php
  2. namespace Lc\ShopBundle\Model;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Lc\ShopBundle\Context\StatusInterface;
  6. trait ReductionTrait
  7. {
  8. /**
  9. * @ORM\Column(type="datetime", nullable=true)
  10. */
  11. protected $dateStart;
  12. /**
  13. * @ORM\Column(type="datetime", nullable=true)
  14. */
  15. protected $dateEnd;
  16. /**
  17. * @ORM\Column(type="float", nullable=true)
  18. */
  19. protected $value;
  20. /**
  21. * @ORM\Column(type="string", length=20, nullable=true)
  22. */
  23. protected $unit;
  24. public function getDateStart(): ?\DateTimeInterface
  25. {
  26. return $this->dateStart;
  27. }
  28. public function setDateStart(?\DateTimeInterface $dateStart): self
  29. {
  30. $this->dateStart = $dateStart;
  31. return $this;
  32. }
  33. public function getDateEnd(): ?\DateTimeInterface
  34. {
  35. return $this->dateEnd;
  36. }
  37. public function setDateEnd(?\DateTimeInterface $dateEnd): self
  38. {
  39. $this->dateEnd = $dateEnd;
  40. return $this;
  41. }
  42. public function getValue(): ?float
  43. {
  44. return $this->value;
  45. }
  46. public function setValue(?float $value): self
  47. {
  48. $this->value = $value;
  49. return $this;
  50. }
  51. public function getUnit(): ?string
  52. {
  53. return $this->unit;
  54. }
  55. public function setUnit(?string $unit): self
  56. {
  57. $this->unit = $unit;
  58. return $this;
  59. }
  60. }