src/Entity/EgdDeclaration.php line 11
<?phpnamespace App\Entity;use App\Repository\EgdDeclarationRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: EgdDeclarationRepository::class)]#[ORM\Table(name: 'egd_declaration')]class EgdDeclaration{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255, unique: true)]private ?string $courierDocId = null;#[ORM\Column(length: 255, unique: true)]private ?string $messageId = null;#[ORM\Column(length: 255, nullable: true)]private ?string $egdDocId = null;#[ORM\Column(length: 50)]private ?string $operation = null;#[ORM\Column(length: 50)]private ?string $status = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $xmlData = null;#[ORM\Column(type: Types::JSON, nullable: true)]private ?array $errors = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $createdAt = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $updatedAt = null;public function __construct(){$this->createdAt = new \DateTime();}public function getId(): ?int{return $this->id;}#[ORM\Column(length: 255, nullable: true)]private ?string $masterWaybillId = null;public function getMasterWaybillId(): ?string{return $this->masterWaybillId;}public function setMasterWaybillId(?string $masterWaybillId): static{$this->masterWaybillId = $masterWaybillId;return $this;}public function getCourierDocId(): ?string{return $this->courierDocId;}public function setCourierDocId(string $courierDocId): self{$this->courierDocId = $courierDocId;return $this;}public function getMessageId(): ?string{return $this->messageId;}public function setMessageId(string $messageId): self{$this->messageId = $messageId;return $this;}public function getEgdDocId(): ?string{return $this->egdDocId;}public function setEgdDocId(?string $egdDocId): self{$this->egdDocId = $egdDocId;return $this;}public function getOperation(): ?string{return $this->operation;}public function setOperation(string $operation): self{$this->operation = $operation;return $this;}public function getStatus(): ?string{return $this->status;}public function setStatus(string $status): self{$this->status = $status;return $this;}public function getXmlData(): ?string{return $this->xmlData;}public function setXmlData(?string $xmlData): self{$this->xmlData = $xmlData;return $this;}public function getErrors(): ?array{return $this->errors;}public function setErrors(?array $errors): self{$this->errors = $errors;return $this;}public function getCreatedAt(): ?\DateTimeInterface{return $this->createdAt;}public function setCreatedAt(\DateTimeInterface $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getUpdatedAt(): ?\DateTimeInterface{return $this->updatedAt;}public function setUpdatedAt(?\DateTimeInterface $updatedAt): self{$this->updatedAt = $updatedAt;return $this;}}