<?php
namespace App\Entity;
use App\Repository\PhotoRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PhotoRepository::class)
*/
class Photo
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $lien;
/**
* @ORM\ManyToOne(targetEntity=Product::class, inversedBy="photos")
*/
private $produit;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $createdat;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isnotsure;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="photoscreate")
*/
private $creator;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $downloaded;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $notdisponible;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isCopied;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isChecked;
public function getId(): ?int
{
return $this->id;
}
public function getLien(): ?string
{
return $this->lien;
}
public function setLien(string $lien): self
{
$this->lien = $lien;
return $this;
}
public function getProduit(): ?Product
{
return $this->produit;
}
public function setProduit(?Product $produit): self
{
$this->produit = $produit;
return $this;
}
public function getCreatedat(): ?\DateTimeInterface
{
return $this->createdat;
}
public function setCreatedat(?\DateTimeInterface $createdat): self
{
$this->createdat = $createdat;
return $this;
}
public function isIsnotsure(): ?bool
{
return $this->isnotsure;
}
public function setIsnotsure(?bool $isnotsure): self
{
$this->isnotsure = $isnotsure;
return $this;
}
public function getCreator(): ?user
{
return $this->creator;
}
public function setCreator(?user $creator): self
{
$this->creator = $creator;
return $this;
}
public function isDownloaded(): ?bool
{
return $this->downloaded;
}
public function setDownloaded(?bool $downloaded): self
{
$this->downloaded = $downloaded;
return $this;
}
public function isNotdisponible(): ?bool
{
return $this->notdisponible;
}
public function setNotdisponible(?bool $notdisponible): self
{
$this->notdisponible = $notdisponible;
return $this;
}
public function isIsCopied(): ?bool
{
return $this->isCopied;
}
public function setIsCopied(?bool $isCopied): self
{
$this->isCopied = $isCopied;
return $this;
}
public function isIsChecked(): ?bool
{
return $this->isChecked;
}
public function setIsChecked(?bool $isChecked): self
{
$this->isChecked = $isChecked;
return $this;
}
}