<?php
namespace App\Entity\Webfactory\Opc;
use App\Entity\Image\Image;
use App\Repository\Webfactory\Opc\OpcImageRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: OpcImageRepository::class)]
class OpcImage
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $kAdh = null;
#[ORM\OneToOne]
#[ORM\JoinColumn(nullable: false)]
private ?Image $idImage = null;
#[ORM\Column]
private ?int $sort = null;
public function getId(): ?int
{
return $this->id;
}
public function getKAdh(): ?string
{
return $this->kAdh;
}
public function setKAdh(string $kAdh): self
{
$this->kAdh = $kAdh;
return $this;
}
public function getIdImage(): ?Image
{
return $this->idImage;
}
public function setIdImage(Image $idImage): self
{
$this->idImage = $idImage;
return $this;
}
public function getSort(): ?int
{
return $this->sort;
}
public function setSort(int $sort): self
{
$this->sort = $sort;
return $this;
}
}