<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Repository\FeedbackRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FeedbackRepository::class)]
#[ApiResource()]
class Feedback
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string')]
private $email;
#[ORM\Column(type: 'string')]
private $fullname;
#[ORM\Column(type: 'float')]
private $rank;
#[ORM\Column(type: 'string')]
private $phone;
#[ORM\Column(type: 'string')]
private $feedback;
#[ORM\ManyToOne(ShopData::class)]
private $shopid;
public function getId(): ?int
{
return $this->id;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getFullname(): ?string
{
return $this->fullname;
}
public function setFullname(string $fullname): self
{
$this->fullname = $fullname;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getFeedback(): ?string
{
return $this->feedback;
}
public function setFeedback(string $feedback): self
{
$this->feedback = $feedback;
return $this;
}
public function getShopid(): ?ShopData
{
return $this->shopid;
}
public function setShopid(?ShopData $shopid): self
{
$this->shopid = $shopid;
return $this;
}
public function getRank(): ?float
{
return $this->rank;
}
public function setRank(float $rank): self
{
$this->rank = $rank;
return $this;
}
}