src/JanusHercules/IntegratedExternalPartnerCustomers/Domain/Entity/WeclappParty.php line 10

Open in your IDE?
  1. <?php
  2. namespace JanusHercules\IntegratedExternalPartnerCustomers\Domain\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity]
  6. #[ORM\Table(name: 'weclapp_parties')]
  7. class WeclappParty
  8. {
  9. public function __construct(
  10. string $id,
  11. string $company
  12. ) {
  13. $this->id = $id;
  14. $this->company = $company;
  15. }
  16. #[ORM\Id]
  17. #[ORM\Column(
  18. type: Types::STRING
  19. )]
  20. private string $id; // yes, all weclapp IDs are seemingly numeric, but the API defines them as type string
  21. public function getId(): string
  22. {
  23. return $this->id;
  24. }
  25. #[ORM\Column(
  26. type: Types::STRING
  27. )]
  28. private string $company;
  29. public function getCompany(): string
  30. {
  31. return $this->company;
  32. }
  33. public function setCompany(
  34. string $company
  35. ): void {
  36. $this->company = $company;
  37. }
  38. }