Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
212
/
root
/
proc
/
212
/
root
/
proc
/
self
/
root
/
proc
/
self
/
root
/
proc
/
70528
/
cwd
/
src
/
Entity
/
//proc/212/root/proc/212/root/proc/self/root/proc/self/root/proc/70528/cwd/src/Entity/Command.php
<?php namespace App\Entity; use App\Repository\CommandRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=CommandRepository::class) */ class Command { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="commands") */ private $user; /** * @ORM\Column(type="string", length=255, nullable="true") */ private $deliveryMode; /** * @ORM\Column(type="string", length=255, nullable="true") */ private $firstname; /** * @ORM\Column(type="string", length=255, nullable="true") */ private $lastname; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $company; /** * @ORM\Column(type="string", length=255, nullable="true") */ private $address; /** * @ORM\Column(type="string", length=255, nullable="true") */ private $zipcode; /** * @ORM\Column(type="string", length=255, nullable="true") */ private $city; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $deliveryFirstname; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $deliveryLastname; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $deliveryCompany; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $deliveryAddress; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $deliveryZipcode; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $deliveryCity; /** * @ORM\OneToOne(targetEntity=Cart::class, inversedBy="command", cascade={"persist", "remove"}) * @ORM\JoinColumn(nullable=false) */ private $cart; /** * @ORM\ManyToOne(targetEntity=Guest::class, inversedBy="commands") */ private $guest; /** * @ORM\ManyToOne(targetEntity=Status::class, inversedBy="commands") */ private $status; public function __construct() { $this->createdAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getDeliveryMode(): ?string { return $this->deliveryMode; } public function setDeliveryMode(string $deliveryMode): self { $this->deliveryMode = $deliveryMode; return $this; } public function getFirstname(): ?string { return $this->firstname; } public function setFirstname(string $firstname): self { $this->firstname = $firstname; return $this; } public function getLastname(): ?string { return $this->lastname; } public function setLastname(string $lastname): self { $this->lastname = $lastname; return $this; } public function getCompany(): ?string { return $this->company; } public function setCompany(?string $company): self { $this->company = $company; return $this; } public function getAddress(): ?string { return $this->address; } public function setAddress(string $address): self { $this->address = $address; return $this; } public function getZipcode(): ?string { return $this->zipcode; } public function setZipcode(string $zipcode): self { $this->zipcode = $zipcode; return $this; } public function getCity(): ?string { return $this->city; } public function setCity(string $city): self { $this->city = $city; return $this; } public function getDeliveryFirstname(): ?string { return $this->deliveryFirstname; } public function setDeliveryFirstname(?string $deliveryFirstname): self { $this->deliveryFirstname = $deliveryFirstname; return $this; } public function getDeliveryLastname(): ?string { return $this->deliveryLastname; } public function setDeliveryLastname(?string $deliveryLastname): self { $this->deliveryLastname = $deliveryLastname; return $this; } public function getDeliveryCompany(): ?string { return $this->deliveryCompany; } public function setDeliveryCompany(?string $deliveryCompany): self { $this->deliveryCompany = $deliveryCompany; return $this; } public function getDeliveryAddress(): ?string { return $this->deliveryAddress; } public function setDeliveryAddress(?string $deliveryAddress): self { $this->deliveryAddress = $deliveryAddress; return $this; } public function getDeliveryZipcode(): ?string { return $this->deliveryZipcode; } public function setDeliveryZipcode(?string $deliveryZipcode): self { $this->deliveryZipcode = $deliveryZipcode; return $this; } public function getDeliveryCity(): ?string { return $this->deliveryCity; } public function setDeliveryCity(?string $deliveryCity): self { $this->deliveryCity = $deliveryCity; return $this; } public function getCart(): ?Cart { return $this->cart; } public function setCart(Cart $cart): self { $this->cart = $cart; return $this; } public function getGuest(): ?Guest { return $this->guest; } public function setGuest(?Guest $guest): self { $this->guest = $guest; return $this; } public function getStatus(): ?Status { return $this->status; } public function setStatus(?Status $status): self { $this->status = $status; return $this; } }