Deprecated: Constant E_STRICT is deprecated in /var/www/PixelForce/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /var/www/PixelForce/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

src/Entity/PackCategory.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PackCategoryRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use JsonSerializable;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. /**
  8.  * @ORM\Entity(repositoryClass=PackCategoryRepository::class)
  9.  */
  10. class PackCategory implements JsonSerializable
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $name;
  22.     /**
  23.      * @ORM\Column(type="string", length=255, nullable=true)
  24.      */
  25.     private $description;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private $image;
  30.     /**
  31.      * @ORM\OneToMany(targetEntity=Pack::class, mappedBy="packCategory")
  32.      */
  33.     private $packs;
  34.     /**
  35.      * @ORM\Column(type="integer", nullable=true)
  36.      */
  37.     private $status;
  38.     public function __construct() {
  39.         $this->packs = new ArrayCollection();
  40.     }
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getName(): ?string
  46.     {
  47.         return $this->name;
  48.     }
  49.     public function setName(string $name): self
  50.     {
  51.         $this->name $name;
  52.         return $this;
  53.     }
  54.     public function getDescription(): ?string
  55.     {
  56.         return $this->description;
  57.     }
  58.     public function setDescription(?string $description): self
  59.     {
  60.         $this->description $description;
  61.         return $this;
  62.     }
  63.     public function getImage(): ?string
  64.     {
  65.         return $this->image;
  66.     }
  67.     public function setImage(?string $image): self
  68.     {
  69.         $this->image $image;
  70.         return $this;
  71.     }
  72.     public function jsonSerialize()
  73.     {
  74.         $vars get_object_vars($this);
  75.         return $vars;
  76.     }
  77.     public function getStatus(): ?int
  78.     {
  79.         return $this->status;
  80.     }
  81.     public function setStatus(?int $status): self
  82.     {
  83.         $this->status $status;
  84.         return $this;
  85.     }
  86. }