Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

ReductionTrait.php 1.2KB

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