src/Entity/Photo.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping\Index;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Repository\PhotoRepository;
  6. #[ORM\Entity(repositoryClassPhotoRepository::class)]
  7. #[Index(name"photo_parent"columns: ["type""par"])]
  8. #[Index(name"photo_visible"columns: ["visible"])]
  9. class Photo implements EntityInterface
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $type null;
  17.     #[ORM\Column]
  18.     private ?int $par null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $name null;
  21.     #[ORM\Column]
  22.     private ?int $prior null;
  23.     #[ORM\Column]
  24.     private ?bool $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): self
  34.     {
  35.         $this->type $type;
  36.         return $this;
  37.     }
  38.     public function getPar(): ?int
  39.     {
  40.         return $this->par;
  41.     }
  42.     public function setPar(int $par): self
  43.     {
  44.         $this->par $par;
  45.         return $this;
  46.     }
  47.     public function getName(): ?string
  48.     {
  49.         return $this->name;
  50.     }
  51.     public function setName(string $name): self
  52.     {
  53.         $this->name $name;
  54.         return $this;
  55.     }
  56.     public function getPrior(): ?int
  57.     {
  58.         return $this->prior;
  59.     }
  60.     public function setPrior(int $prior): self
  61.     {
  62.         $this->prior $prior;
  63.         return $this;
  64.     }
  65.     public function isVisible(): ?bool
  66.     {
  67.         return $this->visible;
  68.     }
  69.     public function setVisible(bool $visible): self
  70.     {
  71.         $this->visible $visible;
  72.         return $this;
  73.     }
  74. }