<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\BFDescriptionTournoiRepository")
*/
class BFDescriptionTournoi extends AbstractArrayAccess
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $extra;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $longdescription;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $price;
/**
* @ORM\OneToOne(targetEntity="App\Entity\BFTournoi", mappedBy="description", cascade={"persist", "remove"})
*/
private $bftournoi;
public function getId(): ?int
{
return $this->id;
}
public function getExtra(): ?string
{
return $this->extra;
}
public function setExtra(?string $extra): self
{
$this->extra = $extra;
return $this;
}
public function getLongdescription(): ?string
{
return $this->longdescription;
}
public function setLongdescription(?string $longdescription): self
{
$this->longdescription = $longdescription;
return $this;
}
public function getPrice(): ?int
{
return $this->price;
}
public function setPrice(?int $price): self
{
$this->price = $price;
return $this;
}
public function getBftournoi(): ?BFTournoi
{
return $this->bftournoi;
}
public function setBftournoi(BFTournoi $bftournoi): self
{
$this->bftournoi = $bftournoi;
// set the owning side of the relation if necessary
if ($bftournoi->getDescription() !== $this) {
$bftournoi->setDescription($this);
}
return $this;
}
}