<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
class Admin extends User
{
#[ORM\ManyToOne(inversedBy: 'users')]
private ?Enterprise $enterprise = null;
#[ORM\Column(options: ['default' => false])]
private bool $isKam = false;
public function getEnterprise(): ?Enterprise
{
return $this->enterprise;
}
public function setEnterprise(?Enterprise $enterprise): self
{
$this->enterprise = $enterprise;
return $this;
}
public function isKam(): bool
{
return $this->isKam === true;
}
public function setIsKam(bool $isKam): self
{
$this->isKam = $isKam;
return $this;
}
}