<?php
namespace App\Entity\Documentation;
use App\Entity\AppUser;
use App\Repository\Documentation\CargoManifestRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CargoManifestRepository::class)
* @ORM\Table(name="documentation_cargo_manifest")
*/
class CargoManifest
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=AppUser::class, inversedBy="cargoManifests")
* @ORM\JoinColumn(nullable=false)
*/
private $generatedBy;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $generatedAt;
/**
* @ORM\OneToOne(targetEntity=MasterGuide::class, inversedBy="cargoManifest", cascade={"persist", "remove"})
* @ORM\JoinColumn(nullable=false)
*/
private $masterGuide;
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 getMasterGuide(): ?MasterGuide
{
return $this->masterGuide;
}
public function setMasterGuide(MasterGuide $masterGuide): self
{
$this->masterGuide = $masterGuide;
return $this;
}
}