src/Entity/Toppings.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\ToppingsRepository;
  5. #[ORM\Entity(repositoryClassToppingsRepository::class)]
  6. class Toppings
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private ?int $id null;
  12.     #[ORM\Column(type'string'length255)]
  13.     private ?string $name null;
  14.     #[ORM\Column(type'string'length255)]
  15.     private ?string $pos_id null;
  16.     #[ORM\Column(type'string'length255)]
  17.     private ?string $pos_id_1050 null;
  18.     #[ORM\Column(type'string'length255)]
  19.     private ?string $pos_id_10202 null;
  20.     #[ORM\Column(type'float')]
  21.     private ?float $price null;
  22.     public function __toString()
  23.     {
  24.         return $this->name;
  25.     }
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getName(): ?string
  31.     {
  32.         return $this->name;
  33.     }
  34.     public function setName(string $name): self
  35.     {
  36.         $this->name $name;
  37.         return $this;
  38.     }
  39.     public function getPosId(): ?string
  40.     {
  41.         return $this->pos_id;
  42.     }
  43.     public function setPosId(string $pos_id): self
  44.     {
  45.         $this->pos_id $pos_id;
  46.         return $this;
  47.     }
  48.     public function getPosId1050(): ?string
  49.     {
  50.         return $this->pos_id_1050;
  51.     }
  52.     public function getPosId10202(): ?string
  53.     {
  54.         return $this->pos_id_10202;
  55.     }
  56.     public function setPosId1050(string $pos_id_1050): self
  57.     {
  58.         $this->pos_id_1050 $pos_id_1050;
  59.         return $this;
  60.     }
  61.     public function setPosId10202(string $pos_id_10202): self
  62.     {
  63.         $this->pos_id_10202 $pos_id_10202;
  64.         return $this;
  65.     }
  66.     public function getPrice(): ?float
  67.     {
  68.         return $this->price;
  69.     }
  70.     public function setPrice(float $price): self
  71.     {
  72.         $this->price $price;
  73.         return $this;
  74.     }
  75. }