<?php
namespace App\Entity;
use App\Core\Entity\Institucion\Campus;
use App\Core\Entity\Maestro;
use App\Repository\CampusMaestroRepository;
use DateTimeInterface;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CampusMaestroRepository::class)
*/
class CampusMaestro
{
const JSON_FIELDS = ['id', 'maestro' => ['id'], 'campus', 'estado', 'email', 'fechaInvitacion', 'nombres', 'apellidos'];
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Maestro::class, inversedBy="campusMaestros")
*/
private $maestro;
/**
* @ORM\ManyToOne(targetEntity=Campus::class, inversedBy="estado")
*/
private $Campus;
/**
* @ORM\Column(type="integer")
*/
private $estado;
/*
* 0: en espera
* 1: aceptado
* 2: rechazado
*/
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
private $email;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $fechaInvitacion;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nombres;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $apellidos;
public function getId(): ?int
{
return $this->id;
}
public function getMaestro(): ?Maestro
{
return $this->maestro;
}
public function setMaestro(?Maestro $maestro): self
{
$this->maestro = $maestro;
return $this;
}
public function getCampus(): ?Campus
{
return $this->Campus;
}
public function setCampus(?Campus $Campus): self
{
$this->Campus = $Campus;
return $this;
}
public function getEstado(): ?int
{
return $this->estado;
}
public function setEstado(int $estado): self
{
$this->estado = $estado;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getFechaInvitacion(): ?DateTimeInterface
{
return $this->fechaInvitacion;
}
public function setFechaInvitacion(?DateTimeInterface $fechaInvitacion): self
{
$this->fechaInvitacion = $fechaInvitacion;
return $this;
}
public function getNombres(): ?string
{
return $this->nombres;
}
public function setNombres(?string $nombres): self
{
$this->nombres = $nombres;
return $this;
}
public function getApellidos(): ?string
{
return $this->apellidos;
}
public function setApellidos(?string $apellidos): self
{
$this->apellidos = $apellidos;
return $this;
}
}