src/Entity/Documentation/ShippingPackingList.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Documentation;
  3. use App\Entity\AppUser;
  4. use App\Entity\Shipping;
  5. use App\Repository\Documentation\ShippingPackingListRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=ShippingPackingListRepository::class)
  9.  * @ORM\Table(name="documentation_shipping_packing_list")
  10.  */
  11. class ShippingPackingList
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity=Shipping::class, inversedBy="shippingPackingLists")
  21.      * @ORM\JoinColumn(nullable=false)
  22.      */
  23.     private $shipping;
  24.     /**
  25.      * @ORM\Column(type="datetime_immutable")
  26.      */
  27.     private $generatedAt;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=AppUser::class, inversedBy="shippingPackingLists")
  30.      * @ORM\JoinColumn(nullable=false)
  31.      */
  32.     private $generatedBy;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getShipping(): ?Shipping
  38.     {
  39.         return $this->shipping;
  40.     }
  41.     public function setShipping(?Shipping $shipping): self
  42.     {
  43.         $this->shipping $shipping;
  44.         return $this;
  45.     }
  46.     public function getGeneratedAt(): ?\DateTimeImmutable
  47.     {
  48.         return $this->generatedAt;
  49.     }
  50.     public function setGeneratedAt(\DateTimeImmutable $generatedAt): self
  51.     {
  52.         $this->generatedAt $generatedAt;
  53.         return $this;
  54.     }
  55.     public function getGeneratedBy(): ?AppUser
  56.     {
  57.         return $this->generatedBy;
  58.     }
  59.     public function setGeneratedBy(?AppUser $generatedBy): self
  60.     {
  61.         $this->generatedBy $generatedBy;
  62.         return $this;
  63.     }
  64. }