<?php declare(strict_types=1);
namespace Sq\Entity\Schema\ORM;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
#[ORM\Table(name: 'billing_details')]
class BillingDetails
{
/**
*
* @var int|null
*/
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
#[ORM\Column(name: 'bill_id', type: 'integer', nullable: false, options: ['unsigned' => true])]
private $id;
/**
*
* @var Organization
*/
#[ORM\OneToOne(targetEntity: Organization::class, inversedBy: 'billingDetails')]
#[ORM\JoinColumn(name: 'bill_o_id', referencedColumnName: 'o_id', nullable: false)]
private $organization;
/**
* @var string|null
*/
#[ORM\Column(name: 'bill_first_name', type: 'string', nullable: true)]
private $firstName;
/**
* @var string|null
*/
#[ORM\Column(name: 'bill_last_name', type: 'string', nullable: true)]
private $lastName;
/**
*
* @var string|null
*/
#[ORM\Column(name: 'bill_email', type: 'binary_aes_encrypted', nullable: true)]
private $email;
/**
* @var string|null
*/
#[ORM\Column(name: 'bill_country_code', type: 'string', length: 2, nullable: true)]
private $countryCode;
public function __construct(Organization $organization)
{
$this->organization = $organization;
}
public function getId(): ?int
{
return $this->id;
}
public function getOrganization(): Organization
{
return $this->organization;
}
public function getFirstName(): ?string
{
return $this->firstName;
}
public function setFirstName(?string $firstName): self
{
$this->firstName = $firstName;
return $this;
}
public function getLastName(): ?string
{
return $this->lastName;
}
public function setLastName(?string $lastName): self
{
$this->lastName = $lastName;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getCountryCode(): ?string
{
return $this->countryCode;
}
public function setCountryCode(?string $countryCode): self
{
$this->countryCode = $countryCode;
return $this;
}
}