PesSetting.php 837 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Billing;
  4. // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use App\Entity\Organization\Organization;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * Classe ... qui ...
  9. */
  10. // #[Auditable]
  11. #[ORM\Entity]
  12. class PesSetting
  13. {
  14. #[ORM\Id]
  15. #[ORM\Column]
  16. #[ORM\GeneratedValue]
  17. private ?int $id = null;
  18. #[ORM\OneToOne(targetEntity: Organization::class, inversedBy: 'pesSetting', cascade: [])]
  19. protected Organization $organization;
  20. public function getId(): ?int
  21. {
  22. return $this->id;
  23. }
  24. public function getOrganization(): Organization
  25. {
  26. return $this->organization;
  27. }
  28. public function setOrganization(Organization $organization): self
  29. {
  30. $this->organization = $organization;
  31. return $this;
  32. }
  33. }