<?php
namespace App\Core\Entity;
use App\Core\Entity\User;
use App\Core\Repository\BloqueosRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=BloqueosRepository::class)
*/
class Bloqueos
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="bloqueados")
* @ORM\JoinColumn(nullable=false)
*/
private $bloqueador;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="bloqueadores")
* @ORM\JoinColumn(nullable=false)
*/
private $bloqueado;
public function getId(): ?int
{
return $this->id;
}
public function getBloqueador(): ?User
{
return $this->bloqueador;
}
public function setBloqueador(?User $bloqueador): self
{
$this->bloqueador = $bloqueador;
return $this;
}
public function getBloqueado(): ?User
{
return $this->bloqueado;
}
public function setBloqueado(?User $bloqueado): self
{
$this->bloqueado = $bloqueado;
return $this;
}
}