<?php
namespace App\Entity;
use App\Repository\GroupeRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=GroupeRepository::class)
*/
class Groupe
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $name;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $rubriques = [];
/**
* @ORM\ManyToOne(targetEntity=Client::class, inversedBy="groupes")
*/
private $client;
/**
* @ORM\ManyToOne(targetEntity=Projet::class, inversedBy="groupes")
*/
private $projet;
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 getRubriques(): ?array
{
return $this->rubriques;
}
public function setRubriques(?array $rubriques): self
{
$this->rubriques = $rubriques;
return $this;
}
public function getClient(): ?Client
{
return $this->client;
}
public function setClient(?Client $client): self
{
$this->client = $client;
return $this;
}
public function getProjet(): ?Projet
{
return $this->projet;
}
public function setProjet(?Projet $projet): self
{
$this->projet = $projet;
return $this;
}
}