<?php
namespace App\Entity;
use App\Repository\UserTypepaiementRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=UserTypepaiementRepository::class)
*/
class UserTypepaiement
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="userTypepaiements")
*/
private $users;
/**
* @ORM\ManyToOne(targetEntity=Typepaiement::class, inversedBy="userTypepaiements")
*/
private $typepaiements;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isValid;
public function getId(): ?int
{
return $this->id;
}
public function getUsers(): ?User
{
return $this->users;
}
public function setUsers(?User $users): self
{
$this->users = $users;
return $this;
}
public function getTypepaiements(): ?Typepaiement
{
return $this->typepaiements;
}
public function setTypepaiements(?Typepaiement $typepaiements): self
{
$this->typepaiements = $typepaiements;
return $this;
}
public function getIsValid(): ?bool
{
return $this->isValid;
}
public function setIsValid(?bool $isValid): self
{
$this->isValid = $isValid;
return $this;
}
}