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.

64 satır
1.0KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Doctrine\Extension;
  3. use Doctrine\ORM\Mapping as ORM;
  4. trait ReductionTrait
  5. {
  6. /**
  7. * @ORM\Column(type="float", nullable=true)
  8. */
  9. protected $value;
  10. /**
  11. * @ORM\Column(type="string", length=20, nullable=true)
  12. */
  13. protected $unit;
  14. /**
  15. * @ORM\Column(type="string", length=20, nullable=true)
  16. */
  17. protected $behaviorTaxRate;
  18. public function getValue(): ?float
  19. {
  20. return $this->value;
  21. }
  22. public function setValue(?float $value): self
  23. {
  24. $this->value = $value;
  25. return $this;
  26. }
  27. public function getUnit(): ?string
  28. {
  29. return $this->unit;
  30. }
  31. public function setUnit(?string $unit): self
  32. {
  33. $this->unit = $unit;
  34. return $this;
  35. }
  36. public function getBehaviorTaxRate(): ?string
  37. {
  38. return $this->behaviorTaxRate;
  39. }
  40. public function setBehaviorTaxRate(?string $behaviorTaxRate): self
  41. {
  42. $this->behaviorTaxRate = $behaviorTaxRate;
  43. return $this;
  44. }
  45. }