src/Entity/EgdDeclaration.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EgdDeclarationRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassEgdDeclarationRepository::class)]
  7. #[ORM\Table(name'egd_declaration')]
  8. class EgdDeclaration
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255uniquetrue)]
  15.     private ?string $courierDocId null;
  16.     #[ORM\Column(length255uniquetrue)]
  17.     private ?string $messageId null;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $egdDocId null;
  20.     #[ORM\Column(length50)]
  21.     private ?string $operation null;
  22.     #[ORM\Column(length50)]
  23.     private ?string $status null;
  24.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  25.     private ?string $xmlData null;
  26.     #[ORM\Column(typeTypes::JSONnullabletrue)]
  27.     private ?array $errors null;
  28.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  29.     private ?\DateTimeInterface $createdAt null;
  30.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  31.     private ?\DateTimeInterface $updatedAt null;
  32.     public function __construct()
  33.     {
  34.         $this->createdAt = new \DateTime();
  35.     }
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     #[ORM\Column(length255nullabletrue)]
  41.     private ?string $masterWaybillId null;
  42.     public function getMasterWaybillId(): ?string
  43.     {
  44.         return $this->masterWaybillId;
  45.     }
  46.     public function setMasterWaybillId(?string $masterWaybillId): static
  47.     {
  48.         $this->masterWaybillId $masterWaybillId;
  49.         return $this;
  50.     }
  51.     public function getCourierDocId(): ?string
  52.     {
  53.         return $this->courierDocId;
  54.     }
  55.     public function setCourierDocId(string $courierDocId): self
  56.     {
  57.         $this->courierDocId $courierDocId;
  58.         return $this;
  59.     }
  60.     public function getMessageId(): ?string
  61.     {
  62.         return $this->messageId;
  63.     }
  64.     public function setMessageId(string $messageId): self
  65.     {
  66.         $this->messageId $messageId;
  67.         return $this;
  68.     }
  69.     public function getEgdDocId(): ?string
  70.     {
  71.         return $this->egdDocId;
  72.     }
  73.     public function setEgdDocId(?string $egdDocId): self
  74.     {
  75.         $this->egdDocId $egdDocId;
  76.         return $this;
  77.     }
  78.     public function getOperation(): ?string
  79.     {
  80.         return $this->operation;
  81.     }
  82.     public function setOperation(string $operation): self
  83.     {
  84.         $this->operation $operation;
  85.         return $this;
  86.     }
  87.     public function getStatus(): ?string
  88.     {
  89.         return $this->status;
  90.     }
  91.     public function setStatus(string $status): self
  92.     {
  93.         $this->status $status;
  94.         return $this;
  95.     }
  96.     public function getXmlData(): ?string
  97.     {
  98.         return $this->xmlData;
  99.     }
  100.     public function setXmlData(?string $xmlData): self
  101.     {
  102.         $this->xmlData $xmlData;
  103.         return $this;
  104.     }
  105.     public function getErrors(): ?array
  106.     {
  107.         return $this->errors;
  108.     }
  109.     public function setErrors(?array $errors): self
  110.     {
  111.         $this->errors $errors;
  112.         return $this;
  113.     }
  114.     public function getCreatedAt(): ?\DateTimeInterface
  115.     {
  116.         return $this->createdAt;
  117.     }
  118.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  119.     {
  120.         $this->createdAt $createdAt;
  121.         return $this;
  122.     }
  123.     public function getUpdatedAt(): ?\DateTimeInterface
  124.     {
  125.         return $this->updatedAt;
  126.     }
  127.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  128.     {
  129.         $this->updatedAt $updatedAt;
  130.         return $this;
  131.     }
  132. }