src/App/Entity/ContentDistribution/ExternalFeedPrice.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\ContentDistribution;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity
  6. *
  7. * @ORM\Table(
  8. * name="external_feed_prices"
  9. * )
  10. */
  11. class ExternalFeedPrice
  12. {
  13. /**
  14. * @ORM\Id
  15. *
  16. * @ORM\Column(type="string", nullable=false)
  17. */
  18. private string $name;
  19. /**
  20. * @ORM\Column(type="float", name="price", nullable=false)
  21. */
  22. private float $price;
  23. public function getName(): string
  24. {
  25. return $this->name;
  26. }
  27. public function setName(string $name): void
  28. {
  29. $this->name = $name;
  30. }
  31. public function getPrice(): float
  32. {
  33. return $this->price;
  34. }
  35. public function setPrice(float $price): void
  36. {
  37. $this->price = $price;
  38. }
  39. }