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
/
self
/
root
/
proc
/
212
/
root
/
proc
/
self
/
root
/
proc
/
70528
/
cwd
/
src
/
Entity
/
//proc/212/root/proc/self/root/proc/212/root/proc/self/root/proc/70528/cwd/src/Entity/CartItem.php
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; use App\Repository\CartItemRepository; use Symfony\Component\HttpFoundation\File\File; use Vich\UploaderBundle\Mapping\Annotation as Vich; use Vich\UploaderBundle\Mapping\Annotation\Uploadable; use Vich\UploaderBundle\Mapping\Annotation\UploadableField; /** * @ORM\Entity(repositoryClass=CartItemRepository::class) * @Vich\Uploadable */ class CartItem { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Product::class) * @ORM\JoinColumn(nullable=false) */ private $product; /** * @ORM\ManyToOne(targetEntity=Quantity::class) * @ORM\JoinColumn(nullable=false) */ private $quantity; /** * @ORM\ManyToOne(targetEntity=Color::class) * @ORM\JoinColumn(nullable=false) */ private $color; /** * @ORM\ManyToOne(targetEntity=Grammage::class) * @ORM\JoinColumn(nullable=false) */ private $grammage; /** * @ORM\ManyToOne(targetEntity=Finishing::class) * @ORM\JoinColumn(nullable=false) */ private $finishing; /** * @ORM\Column(type="integer") */ private $selfQuantity; /** * @ORM\ManyToOne(targetEntity=Size::class) * @ORM\JoinColumn(nullable=false) */ private $size; /** * @ORM\ManyToOne(targetEntity=Page::class) * @ORM\JoinColumn(nullable=false) */ private $pages; /** * @ORM\ManyToOne(targetEntity=Fold::class) */ private $fold; /** * NOTE: This is not a mapped field of entity metadata, just a simple property. * * @Vich\UploadableField(mapping="product_design", fileNameProperty="design") * * @var File|null */ private $designFile; /** * @ORM\Column(type="text", nullable="true") */ private $design; /** * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; /** * @ORM\ManyToOne(targetEntity=Price::class, inversedBy="cartItems") */ private $price; /** * @ORM\Column(type="text", nullable=true) */ private $textMessage; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $downloadToken; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $mockup; public function __construct() { $this->updatedAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getWidth(): ?int { return $this->width; } public function setWidth(int $width): self { $this->width = $width; return $this; } public function getHeight(): ?int { return $this->height; } public function setHeight(int $height): self { $this->height = $height; return $this; } public function getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { $this->product = $product; return $this; } public function getQuantity(): ?Quantity { return $this->quantity; } public function setQuantity(?Quantity $quantity): self { $this->quantity = $quantity; return $this; } public function getColor(): ?Color { return $this->color; } public function setColor(?Color $color): self { $this->color = $color; return $this; } public function getGrammage(): ?Grammage { return $this->grammage; } public function setGrammage(?Grammage $grammage): self { $this->grammage = $grammage; return $this; } public function getFinishing(): ?Finishing { return $this->finishing; } public function setFinishing(?Finishing $finishing): self { $this->finishing = $finishing; return $this; } public function getSelfQuantity(): ?int { return $this->selfQuantity; } public function setSelfQuantity(int $selfQuantity): self { $this->selfQuantity = $selfQuantity; return $this; } public function getSize(): ?Size { return $this->size; } public function setSize(?Size $size): self { $this->size = $size; return $this; } public function getPages(): ?Page { return $this->pages; } public function setPages(?Page $pages): self { $this->pages = $pages; return $this; } public function getFold(): ?Fold { return $this->fold; } public function setFold(?Fold $fold): self { $this->fold = $fold; return $this; } public function setDesignFile(?File $designFile = null): void { $this->designFile = $designFile; if (null !== $designFile) { // It is required that at least one field changes if you are using doctrine // otherwise the event listeners won't be called and the file is lost $this->updatedAt = new \DateTime(); } } public function getDesignFile(): ?File { return $this->designFile; } public function getDesign(): ?string { return $this->design; } public function setDesign(?string $design): self { $this->design = $design; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } public function getPrice(): ?Price { return $this->price; } public function setPrice(?Price $price): self { $this->price = $price; return $this; } public function getTextMessage(): ?string { return $this->textMessage; } public function setTextMessage(?string $textMessage): self { $this->textMessage = $textMessage; return $this; } public function getDownloadToken(): ?string { return $this->downloadToken; } public function setDownloadToken(?string $downloadToken): self { $this->downloadToken = $downloadToken; return $this; } public function getMockup(): ?string { return $this->mockup; } public function setMockup(?string $mockup): self { $this->mockup = $mockup; return $this; } }