<?php
namespace JanusHercules\IntegratedExternalPartnerCustomers\Domain\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
#[ORM\Table(name: 'weclapp_parties')]
class WeclappParty
{
public function __construct(
string $id,
string $company
) {
$this->id = $id;
$this->company = $company;
}
#[ORM\Id]
#[ORM\Column(
type: Types::STRING
)]
private string $id; // yes, all weclapp IDs are seemingly numeric, but the API defines them as type string
public function getId(): string
{
return $this->id;
}
#[ORM\Column(
type: Types::STRING
)]
private string $company;
public function getCompany(): string
{
return $this->company;
}
public function setCompany(
string $company
): void {
$this->company = $company;
}
}