<?php
namespace App\Entity;
use App\Repository\QRCodeRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=QRCodeRepository::class)
*/
class QRCode
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $svg;
/**
* @ORM\OneToOne(targetEntity=Cuvee::class, inversedBy="qRCode", cascade={"persist", "remove"})
* @ORM\JoinColumn(nullable=false)
*/
private $cuvee;
/**
* @ORM\Column(type="string", length=255)
*/
private $png;
/**
* @ORM\Column(type="string", length=255)
*/
private $pdf;
public function getId(): ?int
{
return $this->id;
}
public function getSvg(): ?string
{
return $this->svg;
}
public function setSvg(string $svg): self
{
$this->svg = $svg;
return $this;
}
public function getCuvee(): ?Cuvee
{
return $this->cuvee;
}
public function setCuvee(Cuvee $cuvee): self
{
$this->cuvee = $cuvee;
return $this;
}
public function getPng(): ?string
{
return $this->png;
}
public function setPng(string $png): self
{
$this->png = $png;
return $this;
}
public function getPdf(): ?string
{
return $this->pdf;
}
public function setPdf(string $pdf): self
{
$this->pdf = $pdf;
return $this;
}
}