1])] private int $quantity = 1; #[ORM\Column(type: Types::INTEGER, options: ['default' => 0])] private int $position = 0; #[ORM\Column(type: Types::DATETIME_IMMUTABLE, name: 'createdAt')] private DateTimeImmutable $createdAt; #[ORM\Column(type: Types::DATETIME_IMMUTABLE, name: 'updatedAt')] private DateTimeImmutable $updatedAt; public function __construct() { $this->createdAt = new DateTimeImmutable(); $this->updatedAt = new DateTimeImmutable(); } public function getComposant(): Composant { return $this->composant; } public function setComposant(Composant $composant): static { $this->composant = $composant; return $this; } public function getTypePiece(): ?ModelType { return $this->typePiece; } public function setTypePiece(?ModelType $typePiece): static { $this->typePiece = $typePiece; return $this; } public function getSelectedPiece(): ?Piece { return $this->selectedPiece; } public function setSelectedPiece(?Piece $selectedPiece): static { $this->selectedPiece = $selectedPiece; return $this; } public function getQuantity(): int { return $this->quantity; } public function setQuantity(int $quantity): static { $this->quantity = $quantity; return $this; } public function getPosition(): int { return $this->position; } public function setPosition(int $position): static { $this->position = $position; return $this; } }