<?php
namespace App\Entity\Projets;
use App\Entity\GestionComerciale\Commande;
use App\Entity\Kanban\Fiche;
use Doctrine\ORM\Mapping as ORM;
/**
* ProjetDomaine
*
* @ORM\Table("projet__projet_domaine")
* @ORM\Entity(repositoryClass="App\Repository\Projets\ProjetDomaineRepository")
*/
class ProjetDomaine
{
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Projets\Domaine", inversedBy="projetDomaines")
* @ORM\JoinColumn(nullable=false)
*/
private $domaine;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\Commande", inversedBy="projetDomaines")
* @ORM\JoinColumn(nullable=true)
*/
private $commande;
/**
* @ORM\Column(name="position", type="integer", nullable=true)
*/
private $position;
/**
* @ORM\Column(name="pourcentage", type="float", length=255, nullable=true)
*/
private $pourcentage;
/**
* @ORM\Column(name="statut", type="boolean", nullable=true)
*/
private $statut;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Kanban\Fiche", inversedBy="projetDomaines", cascade={"persist"})
* @ORM\JoinColumn(nullable=true)
*/
private $fiche;
public function getId(): int
{
return $this->id;
}
public function setPosition(?int $position): ProjetDomaine
{
$this->position = $position;
return $this;
}
public function getPosition(): ?int
{
return $this->position;
}
public function setDomaine(?Domaine $domaine): ProjetDomaine
{
$this->domaine = $domaine;
return $this;
}
public function getDomaine(): ?Domaine
{
return $this->domaine;
}
public function setCommande(?Commande $commande): ProjetDomaine
{
$this->commande = $commande;
return $this;
}
public function getCommande(): ?Commande
{
return $this->commande;
}
public function setPourcentage(?float $pourcentage): ProjetDomaine
{
$this->pourcentage = $pourcentage;
return $this;
}
public function getPourcentage(): ?float
{
return $this->pourcentage;
}
public function setStatut(?bool $statut): ProjetDomaine
{
$this->statut = $statut;
return $this;
}
public function getStatut(): ?bool
{
return $this->statut;
}
public function setFiche(?Fiche $fiche): ProjetDomaine
{
$this->fiche = $fiche;
return $this;
}
public function getFiche(): ?Fiche
{
return $this->fiche;
}
}