<?php
namespace App\Entity;
use App\Repository\TroikaRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TroikaRepository::class)]
class Troika
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: Pays::class, inversedBy: 'troikas')]
private $pays = null;
#[ORM\ManyToOne(targetEntity: Ptf::class, inversedBy: 'troikas')]
private $ptf = null;
public function getId(): ?int
{
return $this->id;
}
public function getPays()
{
return $this->pays;
}
public function setPays( $pays): self
{
$this->pays = $pays;
return $this;
}
public function getPtf()
{
return $this->ptf;
}
public function setPtf( $ptf): self
{
$this->ptf = $ptf;
return $this;
}
}