<?php
namespace App\Entity;
use App\Repository\ColisRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ColisRepository::class)
*/
class Colis
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $nombreBouteille;
/**
* @ORM\ManyToOne(targetEntity=Commande::class, inversedBy="colis", cascade={"persist"})
* @ORM\JoinColumn(nullable=false)
*/
private $commande;
public function getId(): ?int
{
return $this->id;
}
public function getNombreBouteille(): ?int
{
return $this->nombreBouteille;
}
public function setNombreBouteille(int $nombreBouteille): self
{
$this->nombreBouteille = $nombreBouteille;
return $this;
}
public function getCommande(): ?Commande
{
return $this->commande;
}
public function setCommande(?Commande $commande): self
{
$this->commande = $commande;
return $this;
}
}