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