<?php
namespace App\Entity\Documentation;
use App\Entity\AppUser;
use App\Entity\Shipping;
use App\Repository\Documentation\ShippingPackingListRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ShippingPackingListRepository::class)
* @ORM\Table(name="documentation_shipping_packing_list")
*/
class ShippingPackingList
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Shipping::class, inversedBy="shippingPackingLists")
* @ORM\JoinColumn(nullable=false)
*/
private $shipping;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $generatedAt;
/**
* @ORM\ManyToOne(targetEntity=AppUser::class, inversedBy="shippingPackingLists")
* @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;
}
}