src/Entity/Webfactory/Opc/OpcImage.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Webfactory\Opc;
  3. use App\Entity\Image\Image;
  4. use App\Repository\Webfactory\Opc\OpcImageRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassOpcImageRepository::class)]
  7. class OpcImage
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $kAdh null;
  15.     #[ORM\OneToOne]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private ?Image $idImage null;
  18.     #[ORM\Column]
  19.     private ?int $sort null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getKAdh(): ?string
  25.     {
  26.         return $this->kAdh;
  27.     }
  28.     public function setKAdh(string $kAdh): self
  29.     {
  30.         $this->kAdh $kAdh;
  31.         return $this;
  32.     }
  33.     public function getIdImage(): ?Image
  34.     {
  35.         return $this->idImage;
  36.     }
  37.     public function setIdImage(Image $idImage): self
  38.     {
  39.         $this->idImage $idImage;
  40.         return $this;
  41.     }
  42.     public function getSort(): ?int
  43.     {
  44.         return $this->sort;
  45.     }
  46.     public function setSort(int $sort): self
  47.     {
  48.         $this->sort $sort;
  49.         return $this;
  50.     }
  51. }