<?php
namespace App\Entity\Product;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\SousFamilleRepository;
/**
* Product
*
* @ORM\Table(name="sous_famille")
* @ORM\Entity(repositoryClass=SousFamilleRepository::class)
*/
class SousFamille
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", nullable=false)
*/
private $name;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nameCommercial;
/**
* @var Famille
*
* @ORM\ManyToOne(targetEntity=Famille::class)
* @ORM\JoinColumn(name="famille_id", referencedColumnName="id")
*/
private $famille;
/**
* @var int|null
*
* @ORM\Column(name="ordering", type="integer", nullable=true)
*/
private $ordering;
/**
* @var int|null
*
* @ORM\Column(type="integer", nullable=true)
*/
private $columnNumber;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $image;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $oneChoice = false;
public function __toString()
{
return $this->name;
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return string
*/
public function getName(): ?string
{
return $this->name;
}
/**
* @param string $name
*/
public function setName(string $name): void
{
$this->name = $name;
}
/**
* @return string
*/
public function getNameCommercial(): ?string
{
return $this->nameCommercial;
}
/**
* @param string $nameCommercial
*/
public function setNameCommercial(string $nameCommercial): void
{
$this->nameCommercial = $nameCommercial;
}
/**
* @return Famille
*/
public function getFamille(): ?Famille
{
return $this->famille;
}
/**
* @param Famille $famille
*/
public function setFamille(Famille $famille): void
{
$this->famille = $famille;
}
/**
* @return int
*/
public function getOrdering(): ?int
{
return $this->ordering;
}
/**
* @param int $ordering
*/
public function setOrdering(?int $ordering): void
{
$this->ordering = $ordering;
}
/**
* @return mixed
*/
public function getImage()
{
return $this->image;
}
/**
* @param mixed $image
*/
public function setImage($image): void
{
$this->image = $image;
}
/**
* @return int
*/
public function getColumnNumber(): ?int
{
return $this->columnNumber;
}
/**
* @param int $columnNumber
*/
public function setColumnNumber(?int $columnNumber): void
{
$this->columnNumber = $columnNumber;
}
public function isOneChoice(): ?bool
{
return $this->oneChoice;
}
public function setOneChoice(?bool $oneChoice): self
{
$this->oneChoice = $oneChoice;
return $this;
}
}