<?php
namespace App\Entity;
use App\Repository\PneuRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PneuRepository::class)
*/
class Pneu
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $hauteur;
/**
* @ORM\Column(type="float")
*/
private $largeur;
/**
* @ORM\Column(type="integer")
*/
private $diametre;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $charge;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $vitesse;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $saison;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $marque;
/**
* @ORM\Column(type="string", length=255)
*/
private $image;
/**
* @ORM\Column(type="float")
*/
private $prix;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $modele;
/**
* @ORM\OneToMany(targetEntity=OrderDetail::class, mappedBy="pneu")
*/
private $orderDetails;
/**
* @ORM\Column(type="string", length=255)
*/
private $structure;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $specificite;
/**
* @ORM\Column(type="string", length=255)
*/
private $DOT;
/**
* @ORM\Column(type="string", length=255)
*/
private $usure;
public function __construct()
{
$this->orderDetails = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getHauteur(): ?int
{
return $this->hauteur;
}
public function setHauteur(int $hauteur): self
{
$this->hauteur = $hauteur;
return $this;
}
public function getLargeur(): ?float
{
return $this->largeur;
}
public function setLargeur(float $largeur): self
{
$this->largeur = $largeur;
return $this;
}
public function getDiametre(): ?int
{
return $this->diametre;
}
public function setDiametre(int $diametre): self
{
$this->diametre = $diametre;
return $this;
}
public function getCharge(): ?int
{
return $this->charge;
}
public function setCharge(?int $charge): self
{
$this->charge = $charge;
return $this;
}
public function getVitesse(): ?string
{
return $this->vitesse;
}
public function setVitesse(?string $vitesse): self
{
$this->vitesse = $vitesse;
return $this;
}
public function getSaison(): ?string
{
return $this->saison;
}
public function setSaison(?string $saison): self
{
$this->saison = $saison;
return $this;
}
public function getMarque(): ?string
{
return $this->marque;
}
public function setMarque(?string $marque): self
{
$this->marque = $marque;
return $this;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(string $image): self
{
$this->image = $image;
return $this;
}
public function getPrix(): ?float
{
return $this->prix;
}
public function setPrix(float $prix): self
{
$this->prix = $prix;
return $this;
}
public function getModele(): ?string
{
return $this->modele;
}
public function setModele(?string $modele): self
{
$this->modele = $modele;
return $this;
}
/**
* @return Collection<int, OrderDetail>
*/
public function getOrderDetails(): Collection
{
return $this->orderDetails;
}
public function addOrderDetail(OrderDetail $orderDetail): self
{
if (!$this->orderDetails->contains($orderDetail)) {
$this->orderDetails[] = $orderDetail;
$orderDetail->setPneu($this);
}
return $this;
}
public function removeOrderDetail(OrderDetail $orderDetail): self
{
if ($this->orderDetails->removeElement($orderDetail)) {
// set the owning side to null (unless already changed)
if ($orderDetail->getPneu() === $this) {
$orderDetail->setPneu(null);
}
}
return $this;
}
public function getStructure(): ?string
{
return $this->structure;
}
public function setStructure(string $structure): self
{
$this->structure = $structure;
return $this;
}
public function getSpecificite(): ?string
{
return $this->specificite;
}
public function setSpecificite(string $specificite): self
{
$this->specificite = $specificite;
return $this;
}
public function getDOT(): ?string
{
return $this->DOT;
}
public function setDOT(string $DOT): self
{
$this->DOT = $DOT;
return $this;
}
public function getUsure(): ?string
{
return $this->usure;
}
public function setUsure(string $usure): self
{
$this->usure = $usure;
return $this;
}
}