<?php
namespace App\Entity;
use App\Repository\TypeEstablishmentRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=TypeEstablishmentRepository::class)
*/
class TypeEstablishment
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Establishments::class, inversedBy="typeEstablishments")
*/
private $establishment;
/**
* @ORM\ManyToOne(targetEntity=Types::class, inversedBy="typeEstablishments")
*/
private $type;
/**
* @ORM\ManyToOne(targetEntity=Users::class, inversedBy="typeEstablishments")
*/
private $createdBy;
public function getId(): ?int
{
return $this->id;
}
public function getEstablishment(): ?Establishments
{
return $this->establishment;
}
public function setEstablishment(?Establishments $establishment): self
{
$this->establishment = $establishment;
return $this;
}
public function getType(): ?Types
{
return $this->type;
}
public function setType(?Types $type): self
{
$this->type = $type;
return $this;
}
public function getCreatedBy(): ?Users
{
return $this->createdBy;
}
public function setCreatedBy(?Users $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
}