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.

54 line
868B

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Common;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\SovBundle\Doctrine\Pattern\AbstractLightEntity;
  5. /**
  6. * @ORM\MappedSuperclass()
  7. */
  8. abstract class TaxRateModel extends AbstractLightEntity
  9. {
  10. /**
  11. * @ORM\Column(type="string", length=255)
  12. */
  13. protected $title;
  14. /**
  15. * @ORM\Column(type="float")
  16. */
  17. protected $value;
  18. public function __toString()
  19. {
  20. return $this->getTitle();
  21. }
  22. public function getTitle(): ?string
  23. {
  24. return $this->title;
  25. }
  26. public function setTitle(string $title): self
  27. {
  28. $this->title = $title;
  29. return $this;
  30. }
  31. public function getValue(): ?float
  32. {
  33. return $this->value;
  34. }
  35. public function setValue(float $value): self
  36. {
  37. $this->value = $value;
  38. return $this;
  39. }
  40. }