src/Flexy/ShopBundle/Entity/Product/MetaDataExtra.php line 10

  1. <?php
  2. namespace App\Flexy\ShopBundle\Entity\Product;
  3. use App\Flexy\ShopBundle\Repository\Product\MetaDataExtraRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassMetaDataExtraRepository::class)]
  7. class MetaDataExtra
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $type null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $name null;
  17.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  18.     private ?string $description null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?float $price null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $photo null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?bool $is_visible null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getType(): ?string
  30.     {
  31.         return $this->type;
  32.     }
  33.     public function setType(?string $type): static
  34.     {
  35.         $this->type $type;
  36.         return $this;
  37.     }
  38.     public function getName(): ?string
  39.     {
  40.         return $this->name;
  41.     }
  42.     public function setName(?string $name): static
  43.     {
  44.         $this->name $name;
  45.         return $this;
  46.     }
  47.     public function getDescription(): ?string
  48.     {
  49.         return $this->description;
  50.     }
  51.     public function setDescription(?string $description): static
  52.     {
  53.         $this->description $description;
  54.         return $this;
  55.     }
  56.     public function getPrice(): ?float
  57.     {
  58.         return $this->price;
  59.     }
  60.     public function setPrice(?float $price): static
  61.     {
  62.         $this->price $price;
  63.         return $this;
  64.     }
  65.     public function getPhoto(): ?string
  66.     {
  67.         return $this->photo;
  68.     }
  69.     public function setPhoto(?string $photo): static
  70.     {
  71.         $this->photo $photo;
  72.         return $this;
  73.     }
  74.     public function isIsVisible(): ?bool
  75.     {
  76.         return $this->is_visible;
  77.     }
  78.     public function setIsVisible(?bool $is_visible): static
  79.     {
  80.         $this->is_visible $is_visible;
  81.         return $this;
  82.     }
  83. }