<?php
namespace App\Entity\Projets;
use App\Entity\GestionComerciale\Commande;
use App\Entity\Kanban\Fiche;
use Doctrine\ORM\Mapping as ORM;
/**
* ProjetActivite
*
* @ORM\Table("projet__projet_activite")
* @ORM\Entity(repositoryClass="App\Repository\Projets\ProjetActiviteRepository")
*/
class ProjetActivite
{
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Projets\Activite", inversedBy="projetActivites")
* @ORM\JoinColumn(nullable=false)
*/
private $activite;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\Commande", inversedBy="projetActivites")
* @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="projetActivites", cascade={"persist"})
* @ORM\JoinColumn(nullable=true)
*/
private $fiche;
public function getId(): int
{
return $this->id;
}
public function setPosition(?int $position): ProjetActivite
{
$this->position = $position;
return $this;
}
public function getPosition(): ?int
{
return $this->position;
}
public function setActivite(?Activite $activite): ProjetActivite
{
$this->activite = $activite;
return $this;
}
public function getActivite(): ?Activite
{
return $this->activite;
}
public function setCommande(?Commande $commande): ProjetActivite
{
$this->commande = $commande;
return $this;
}
public function getCommande(): ?Commande
{
return $this->commande;
}
public function setPourcentage(?float $pourcentage): ProjetActivite
{
$this->pourcentage = $pourcentage;
return $this;
}
public function getPourcentage(): ?float
{
return $this->pourcentage;
}
public function setStatut(?bool $statut): ProjetActivite
{
$this->statut = $statut;
return $this;
}
public function getStatut(): ?bool
{
return $this->statut;
}
public function setFiche(?Fiche $fiche): ProjetActivite
{
$this->fiche = $fiche;
return $this;
}
public function getFiche(): ?Fiche
{
return $this->fiche;
}
}