src/Entity/Feedback.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\FeedbackRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassFeedbackRepository::class)]
  7. #[ApiResource()]
  8. class Feedback
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string')]
  15.     private $email;
  16.     #[ORM\Column(type'string')]
  17.     private $fullname;
  18.     #[ORM\Column(type'float')]
  19.     private $rank;
  20.     #[ORM\Column(type'string')]
  21.     private $phone;
  22.     #[ORM\Column(type'string')]
  23.     private $feedback;
  24.     #[ORM\ManyToOne(ShopData::class)]
  25.     private $shopid;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getEmail(): ?string
  31.     {
  32.         return $this->email;
  33.     }
  34.     public function setEmail(string $email): self
  35.     {
  36.         $this->email $email;
  37.         return $this;
  38.     }
  39.     public function getFullname(): ?string
  40.     {
  41.         return $this->fullname;
  42.     }
  43.     public function setFullname(string $fullname): self
  44.     {
  45.         $this->fullname $fullname;
  46.         return $this;
  47.     }
  48.     public function getPhone(): ?string
  49.     {
  50.         return $this->phone;
  51.     }
  52.     public function setPhone(string $phone): self
  53.     {
  54.         $this->phone $phone;
  55.         return $this;
  56.     }
  57.     public function getFeedback(): ?string
  58.     {
  59.         return $this->feedback;
  60.     }
  61.     public function setFeedback(string $feedback): self
  62.     {
  63.         $this->feedback $feedback;
  64.         return $this;
  65.     }
  66.     public function getShopid(): ?ShopData
  67.     {
  68.         return $this->shopid;
  69.     }
  70.     public function setShopid(?ShopData $shopid): self
  71.     {
  72.         $this->shopid $shopid;
  73.         return $this;
  74.     }
  75.     public function getRank(): ?float
  76.     {
  77.         return $this->rank;
  78.     }
  79.     public function setRank(float $rank): self
  80.     {
  81.         $this->rank $rank;
  82.         return $this;
  83.     }
  84. }