<?php
namespace App\Entity;
use App\Asistencia\Entity\Clase;
use App\Repository\ClaseArchivoRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ClaseArchivoRepository::class)
*/
class ClaseArchivo
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Clase::class, inversedBy="claseArchivos", cascade={"persist"})
*/
private $clase;
/**
* @ORM\ManyToOne(targetEntity=Archivo::class)
*/
private $archivo;
public function getId(): ?int
{
return $this->id;
}
public function getClase(): ?Clase
{
return $this->clase;
}
public function setClase(?Clase $clase): self
{
$this->clase = $clase;
return $this;
}
public function getArchivos(): ?Archivo
{
return $this->archivo;
}
public function setArchivos(?Archivo $archivo): self
{
$this->archivo = $archivo;
return $this;
}
}