<?php
namespace App\Entity;
use App\Repository\CustomerTaxInformationRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CustomerTaxInformationRepository::class)]
class CustomerTaxInformation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(nullable: true)]
private ?string $taxNumber;
#[ORM\Column(nullable: true)]
private ?string $registerNumber;
#[ORM\Column(nullable: true)]
private ?string $ust;
#[ORM\Column(nullable: true)]
private ?string $law;
#[ORM\OneToOne(mappedBy: 'taxInformation', targetEntity: Customer::class, cascade: ['persist', 'remove'])]
private ?Customer $customer = null;
public function getId(): ?int
{
return $this->id;
}
public function getTaxNumber(): ?string
{
return $this->taxNumber;
}
public function setTaxNumber(?string $taxNumber): self
{
$this->taxNumber = $taxNumber;
return $this;
}
public function getRegisterNumber(): ?string
{
return $this->registerNumber;
}
public function setRegisterNumber(?string $registerNumber): self
{
$this->registerNumber = $registerNumber;
return $this;
}
public function getUst(): ?string
{
return $this->ust;
}
public function setUst(?string $ust): self
{
$this->ust = $ust;
return $this;
}
public function getLaw(): ?string
{
return $this->law;
}
public function setLaw(?string $law): self
{
$this->law = $law;
return $this;
}
public function getCustomer(): ?Customer
{
return $this->customer;
}
public function setCustomer(Customer $customer): self
{
$this->customer = $customer;
return $this;
}
}