<?php
namespace App\Entity;
use App\Repository\ForumCategorieRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ForumCategorieRepository::class)
*/
class ForumCategorie
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $name;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $ordre;
/**
* @ORM\ManyToOne(targetEntity=Forum::class, inversedBy="category")
*/
private $forum;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getOrdre(): ?int
{
return $this->ordre;
}
public function setOrdre(?int $ordre): self
{
$this->ordre = $ordre;
return $this;
}
public function getForum(): ?Forum
{
return $this->forum;
}
public function setForum(?Forum $forum): self
{
$this->forum = $forum;
return $this;
}
}