src/Entity/Troika.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TroikaRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassTroikaRepository::class)]
  6. class Troika
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(targetEntityPays::class, inversedBy'troikas')]
  13.     private  $pays null;
  14.     #[ORM\ManyToOne(targetEntityPtf::class, inversedBy'troikas')]
  15.     private  $ptf null;
  16.     public function getId(): ?int
  17.     {
  18.         return $this->id;
  19.     }
  20.     public function getPays()
  21.     {
  22.         return $this->pays;
  23.     }
  24.     public function setPays$pays): self
  25.     {
  26.         $this->pays $pays;
  27.         return $this;
  28.     }
  29.     public function getPtf()
  30.     {
  31.         return $this->ptf;
  32.     }
  33.     public function setPtf$ptf): self
  34.     {
  35.         $this->ptf $ptf;
  36.         return $this;
  37.     }
  38. }