<?phpnamespace App\Entity;use App\Repository\PackCategoryRepository;use Doctrine\ORM\Mapping as ORM;use JsonSerializable;use Doctrine\Common\Collections\ArrayCollection;/** * @ORM\Entity(repositoryClass=PackCategoryRepository::class) */class PackCategory implements JsonSerializable{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $name; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $description; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $image; /** * @ORM\OneToMany(targetEntity=Pack::class, mappedBy="packCategory") */ private $packs; /** * @ORM\Column(type="integer", nullable=true) */ private $status; public function __construct() { $this->packs = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getImage(): ?string { return $this->image; } public function setImage(?string $image): self { $this->image = $image; return $this; } public function jsonSerialize() { $vars = get_object_vars($this); return $vars; } public function getStatus(): ?int { return $this->status; } public function setStatus(?int $status): self { $this->status = $status; return $this; }}