src/Entity/FichePreserieOperation.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FichePreserieOperationRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassFichePreserieOperationRepository::class)]
  8. class FichePreserieOperation
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\ManyToOne(targetEntityOperation::class, inversedBy'operations')]
  15.     private $operation;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $valeur;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private $nombre_point;
  20.     #[ORM\Column(type'text'nullabletrue)]
  21.     private $pointcle;
  22.     #[ORM\ManyToOne(targetEntityFichePreserie::class, inversedBy'operations'cascade: ['persist''remove'])]
  23.     private $fichepreserie;
  24.     public function __construct()
  25.     {
  26.         $this->fichePreseries = new ArrayCollection();
  27.     }
  28.     public function __clone() {
  29.         if ($this->id) {
  30.             $this->id null;
  31.         }
  32.     }
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getOperation(): ?Operation
  38.     {
  39.         return $this->operation;
  40.     }
  41.     public function setOperation(?Operation $operation): self
  42.     {
  43.         $this->operation $operation;
  44.         return $this;
  45.     }
  46.     public function getValeur(): ?string
  47.     {
  48.         return $this->valeur;
  49.     }
  50.     public function setValeur(?string $valeur): self
  51.     {
  52.         $this->valeur $valeur;
  53.         return $this;
  54.     }
  55.     public function getNombrePoint(): ?string
  56.     {
  57.         return $this->nombre_point;
  58.     }
  59.     public function setNombrePoint(?string $nombre_point): self
  60.     {
  61.         $this->nombre_point $nombre_point;
  62.         return $this;
  63.     }
  64.     public function getPointcle(): ?string
  65.     {
  66.         return $this->pointcle;
  67.     }
  68.     public function setPointcle(?string $pointcle): self
  69.     {
  70.         $this->pointcle $pointcle;
  71.         return $this;
  72.     }
  73.     public function getFichepreserie(): ?FichePreserie
  74.     {
  75.         return $this->fichepreserie;
  76.     }
  77.     public function setFichepreserie(?FichePreserie $fichepreserie): self
  78.     {
  79.         $this->fichepreserie $fichepreserie;
  80.         return $this;
  81.     }
  82. }