src/Entity/Admin.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity]
  5. class Admin extends User
  6. {
  7. #[ORM\ManyToOne(inversedBy: 'users')]
  8. private ?Enterprise $enterprise = null;
  9. #[ORM\Column(options: ['default' => false])]
  10. private bool $isKam = false;
  11. public function getEnterprise(): ?Enterprise
  12. {
  13. return $this->enterprise;
  14. }
  15. public function setEnterprise(?Enterprise $enterprise): self
  16. {
  17. $this->enterprise = $enterprise;
  18. return $this;
  19. }
  20. public function isKam(): bool
  21. {
  22. return $this->isKam === true;
  23. }
  24. public function setIsKam(bool $isKam): self
  25. {
  26. $this->isKam = $isKam;
  27. return $this;
  28. }
  29. }