<?phpnamespace App\Entity;use App\Repository\ClickAndCollectItemRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ClickAndCollectItemRepository::class) * @ORM\EntityListeners({ * "App\Listener\EntityListener", * "App\Listener\ClickAndCollectListener" * }) */class ClickAndCollectItem{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=ClickAndCollect::class, inversedBy="items") * @ORM\JoinColumn(nullable=false) */ private $collect; /** * @ORM\ManyToOne(targetEntity=Product::class) * @ORM\JoinColumn(nullable=false) */ private $product; /** * @ORM\ManyToOne(targetEntity=Variant::class) * @ORM\JoinColumn(nullable=false) */ private $variant; /** * @ORM\ManyToOne(targetEntity=Dealer::class, inversedBy="clickAndCollectItems") * @ORM\JoinColumn(nullable=false) */ private $dealer; /** * @ORM\Column(type="string", length=190) */ private $name; /** * @ORM\Column(type="float") */ private $price = 0; /** * @ORM\Column(type="float") */ private $priceNoTax = 0; /** * @ORM\Column(type="float") */ private $tax = 0; /** * @ORM\Column(type="string", length=3) */ private $currency; /** * @ORM\Column(type="integer") */ private $count = 1; /** * @ORM\Column(type="integer") */ private $status = 0; /** * @ORM\Column(type="datetime") */ private $createts; /** * @ORM\Column(type="datetime", nullable=true) */ private $editts; /** * @ORM\Column(type="datetime", nullable=true) */ private $stornots; /** * @ORM\Column(type="datetime", nullable=true) */ private $pickedUpts; /** * @ORM\ManyToOne(targetEntity="App\Entity\User") */ private $editUser; /** * @ORM\Column(type="float") */ private $course; /** * @ORM\Column(type="text", nullable=true) */ private $note; public function getId(): ?int { return $this->id; } public function getCollect(): ?ClickAndCollect { return $this->collect; } public function setCollect(?ClickAndCollect $collect): self { $this->collect = $collect; return $this; } public function getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { $this->product = $product; return $this; } public function getVariant(): ?Variant { return $this->variant; } public function setVariant(?Variant $variant): self { $this->variant = $variant; return $this; } public function getDealer(): ?Dealer { return $this->dealer; } public function setDealer(?Dealer $dealer): self { $this->dealer = $dealer; return $this; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getPrice(): ?float { return $this->price; } public function setPrice(float $price): self { $this->price = $price; return $this; } public function getPriceNoTax(): ?float { return $this->priceNoTax; } public function setPriceNoTax(float $priceNoTax): self { $this->priceNoTax = $priceNoTax; return $this; } public function getTax(): ?float { return $this->tax; } public function setTax(float $tax): self { $this->tax = $tax; return $this; } public function getCurrency(): ?string { return $this->currency; } public function setCurrency(string $currency): self { $this->currency = $currency; return $this; } public function getCount(): ?int { return $this->count; } public function setCount(int $count): self { $this->count = $count; return $this; } public function getStatus(): ?int { return $this->status; } public function setStatus(?int $status): self { $this->status = $status; return $this; } public function getCreatets(): ?\DateTimeInterface { return $this->createts; } public function setCreatets(\DateTimeInterface $createts): self { $this->createts = $createts; return $this; } public function getEditts(): ?\DateTimeInterface { return $this->editts; } public function setEditts(?\DateTimeInterface $editts): self { $this->editts = $editts; return $this; } public function getEditUser(): ?User { return $this->editUser; } public function setEditUser(?User $editUser): self { $this->editUser = $editUser; return $this; } /** * Get Course * * @return mixed */ public function getCourse() { return $this->course; } /** * Set Course * * @param mixed $course */ public function setCourse( $course ) { $this->course = $course; } /** * Get Note * * @return mixed */ public function getNote() { return $this->note; } /** * Set Note * * @param mixed $note */ public function setNote( $note ) { $this->note = $note; } /** * Get PickedUpts * * @return mixed */ public function getPickedUpts() { return $this->pickedUpts; } /** * Set PickedUpts * * @param mixed $pickedUpts */ public function setPickedUpts( $pickedUpts ) { $this->pickedUpts = $pickedUpts; } /** * Get Stornots * * @return mixed */ public function getStornots() { return $this->stornots; } /** * Set Stornots * * @param mixed $stornots */ public function setStornots( $stornots ) { $this->stornots = $stornots; }}