<?php
namespace App\Entity;
use App\Repository\ParticipantRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ParticipantRepository::class)
*/
class Participant
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $adulte;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $child;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $baby;
/**
* @ORM\Column(type="string", length=255)
*/
private $typeParticipant;
/**
* @ORM\Column(type="integer")
*/
private $nombreParticipant;
/**
* @ORM\ManyToOne(targetEntity=Product::class, inversedBy="participants")
*/
private $produit;
public function getId(): ?int
{
return $this->id;
}
public function getAdulte(): ?int
{
return $this->adulte;
}
public function setAdulte(?int $adulte): self
{
$this->adulte = $adulte;
return $this;
}
public function getChild(): ?int
{
return $this->child;
}
public function setChild(?int $child): self
{
$this->child = $child;
return $this;
}
public function getBaby(): ?int
{
return $this->baby;
}
public function setBaby(?int $baby): self
{
$this->baby = $baby;
return $this;
}
public function getTypeParticipant(): ?string
{
return $this->typeParticipant;
}
public function setTypeParticipant(string $typeParticipant): self
{
$this->typeParticipant = $typeParticipant;
return $this;
}
public function getNombreParticipant(): ?int
{
return $this->nombreParticipant;
}
public function setNombreParticipant(int $nombreParticipant): self
{
$this->nombreParticipant = $nombreParticipant;
return $this;
}
public function getProduit(): ?Product
{
return $this->produit;
}
public function setProduit(?Product $produit): self
{
$this->produit = $produit;
return $this;
}
}