<?php
namespace App\Entity\Quote;
use App\Entity\AppUser;
use App\Repository\Quote\LogRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=LogRepository::class)
* @ORM\Table(name="quote_log")
*/
class Log
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Quote::class, inversedBy="logs")
* @ORM\JoinColumn(nullable=false)
*/
private $quote;
/**
* @ORM\Column(type="datetime")
*/
private $createdAr;
/**
* @ORM\ManyToOne(targetEntity=AppUser::class, inversedBy="quoteLogs")
* @ORM\JoinColumn(nullable=false)
*/
private $createdBy;
/**
* @ORM\Column(type="text")
*/
private $extraInfo;
public function getId(): ?int
{
return $this->id;
}
public function getQuote(): ?Quote
{
return $this->quote;
}
public function setQuote(?Quote $quote): self
{
$this->quote = $quote;
return $this;
}
public function getCreatedAr(): ?\DateTimeInterface
{
return $this->createdAr;
}
public function setCreatedAr(\DateTimeInterface $createdAr): self
{
$this->createdAr = $createdAr;
return $this;
}
public function getCreatedBy(): ?AppUser
{
return $this->createdBy;
}
public function setCreatedBy(?AppUser $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
public function getExtraInfo(): ?string
{
return $this->extraInfo;
}
public function setExtraInfo(string $extraInfo): self
{
$this->extraInfo = $extraInfo;
return $this;
}
}