53 rindas
941B

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