src/Entity/Quote/Log.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Quote;
  3. use App\Entity\AppUser;
  4. use App\Repository\Quote\LogRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=LogRepository::class)
  8.  * @ORM\Table(name="quote_log")
  9.  */
  10. class Log
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Quote::class, inversedBy="logs")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $quote;
  23.     /**
  24.      * @ORM\Column(type="datetime")
  25.      */
  26.     private $createdAr;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity=AppUser::class, inversedBy="quoteLogs")
  29.      * @ORM\JoinColumn(nullable=false)
  30.      */
  31.     private $createdBy;
  32.     /**
  33.      * @ORM\Column(type="text")
  34.      */
  35.     private $extraInfo;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getQuote(): ?Quote
  41.     {
  42.         return $this->quote;
  43.     }
  44.     public function setQuote(?Quote $quote): self
  45.     {
  46.         $this->quote $quote;
  47.         return $this;
  48.     }
  49.     public function getCreatedAr(): ?\DateTimeInterface
  50.     {
  51.         return $this->createdAr;
  52.     }
  53.     public function setCreatedAr(\DateTimeInterface $createdAr): self
  54.     {
  55.         $this->createdAr $createdAr;
  56.         return $this;
  57.     }
  58.     public function getCreatedBy(): ?AppUser
  59.     {
  60.         return $this->createdBy;
  61.     }
  62.     public function setCreatedBy(?AppUser $createdBy): self
  63.     {
  64.         $this->createdBy $createdBy;
  65.         return $this;
  66.     }
  67.     public function getExtraInfo(): ?string
  68.     {
  69.         return $this->extraInfo;
  70.     }
  71.     public function setExtraInfo(string $extraInfo): self
  72.     {
  73.         $this->extraInfo $extraInfo;
  74.         return $this;
  75.     }
  76. }