<?php
namespace App\Entity\Gestiform\Admin;
use App\Entity\AbstractEntity;
use App\Repository\Gestiform\Admin\ApiGestiformRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ApiGestiformRepository::class)
*/
class ApiGestiform extends AbstractEntity
{
/**
* @ORM\Column(type="string", length=50, nullable=false)
*/
private string $code;
/**
* @ORM\Column(type="string", length=50, nullable=false)
*/
private string $slug;
/**
* @ORM\Column(type="string", length=255, nullable=false)
*/
private string $intitule;
/**
* @ORM\Column(type="boolean")
*/
private bool $postulant = false;
/**
* @ORM\ManyToOne(targetEntity=Societe::class)
* @ORM\JoinColumn(nullable=false)
*/
private Societe $societeParDefaut;
public function getCode(): string
{
return $this->code;
}
public function setCode(string $code): self
{
$this->code = $code;
return $this;
}
public function getSlug(): string
{
return $this->slug;
}
public function setSlug(string $slug): self
{
$this->slug = $slug;
return $this;
}
public function getIntitule(): string
{
return $this->intitule;
}
public function setIntitule(string $intitule): self
{
$this->intitule = $intitule;
return $this;
}
public function isPostulant(): bool
{
return $this->postulant;
}
public function setPostulant(bool $postulant): self
{
$this->postulant = $postulant;
return $this;
}
public function getSocieteParDefaut(): Societe
{
return $this->societeParDefaut;
}
public function setSocieteParDefaut(Societe $societeParDefaut): self
{
$this->societeParDefaut = $societeParDefaut;
return $this;
}
}