src/Entity/Documentation/ShippingCargoManifest.php line 13

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