<?php
namespace App\Entity\Documentation;
use App\Entity\AppUser;
use App\Entity\SecurityDocument\Document as SecurityDocument;
use App\Entity\Shipping;
use App\Repository\Documentation\DocumentRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=DocumentRepository::class)
* @ORM\Table(name="documentation_document")
*/
class Document
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=AppUser::class, inversedBy="documents")
* @ORM\JoinColumn(nullable=false)
*/
private $generatedBy;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $generatedAt;
/**
* @ORM\ManyToOne(targetEntity=Shipping::class, inversedBy="documents")
* @ORM\JoinColumn(nullable=false)
*/
private $shipping;
/**
* @ORM\ManyToOne(targetEntity=SecurityDocument::class, inversedBy="generatedDocuments")
* @ORM\JoinColumn(nullable=false)
*/
private $securityDocument;
public function getId(): ?int
{
return $this->id;
}
public function getGeneratedBy(): ?AppUser
{
return $this->generatedBy;
}
public function setGeneratedBy(?AppUser $generatedBy): self
{
$this->generatedBy = $generatedBy;
return $this;
}
public function getGeneratedAt(): ?\DateTimeImmutable
{
return $this->generatedAt;
}
public function setGeneratedAt(\DateTimeImmutable $generatedAt): self
{
$this->generatedAt = $generatedAt;
return $this;
}
public function getShipping(): ?Shipping
{
return $this->shipping;
}
public function setShipping(?Shipping $shipping): self
{
$this->shipping = $shipping;
return $this;
}
public function getSecurityDocument(): ?SecurityDocument
{
return $this->securityDocument;
}
public function setSecurityDocument(?SecurityDocument $securityDocument): self
{
$this->securityDocument = $securityDocument;
return $this;
}
}