src/Entity/PartAction.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PartActionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPartActionRepository::class)]
  6. class PartAction
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $nombre null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $relation null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $type null;
  18.     #[ORM\ManyToOne(inversedBy'action')]
  19.     private ?Investisseur $investisseur null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getNombre(): ?string
  25.     {
  26.         return $this->nombre;
  27.     }
  28.     public function setNombre(string $nombre): static
  29.     {
  30.         $this->nombre $nombre;
  31.         return $this;
  32.     }
  33.     public function getRelation(): ?string
  34.     {
  35.         return $this->relation;
  36.     }
  37.     public function setRelation(string $relation): static
  38.     {
  39.         $this->relation $relation;
  40.         return $this;
  41.     }
  42.     public function getType(): ?string
  43.     {
  44.         return $this->type;
  45.     }
  46.     public function setType(string $type): static
  47.     {
  48.         $this->type $type;
  49.         return $this;
  50.     }
  51.     public function getInvestisseur(): ?Investisseur
  52.     {
  53.         return $this->investisseur;
  54.     }
  55.     public function setInvestisseur(?Investisseur $investisseur): static
  56.     {
  57.         $this->investisseur $investisseur;
  58.         return $this;
  59.     }
  60. }