<?php
namespace Sq\Entity\Schema\ORM;
use Doctrine\ORM\Mapping as ORM;
/**
* Business.
*/
#[ORM\Entity]
#[ORM\Table(name: 'business')]
class Business
{
/**
* @var Member
*/
#[ORM\OneToOne(targetEntity: Member::class, inversedBy: 'business')]
#[ORM\JoinColumn(name: 'bus_m_id', referencedColumnName: 'm_id', nullable: false)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'NONE')]
private $member;
/**
* @var string|null
*/
#[ORM\Column(name: 'bus_company', type: 'string', length: 64, nullable: true)]
private $company;
/**
* @var string|null
*/
#[ORM\Column(name: 'bus_address_1', type: 'string', length: 128, nullable: true)]
private $address1;
/**
* @var string|null
*/
#[ORM\Column(name: 'bus_address_2', type: 'string', length: 128, nullable: true)]
private $address2;
/**
* @var string|null
*/
#[ORM\Column(name: 'bus_city', type: 'string', length: 64, nullable: true)]
private $city;
/**
* @var string|null
*/
#[ORM\Column(name: 'bus_region', type: 'string', length: 32, nullable: true)]
private $region;
/**
* @var string|null
*/
#[ORM\Column(name: 'bus_postcode', type: 'string', length: 12, nullable: true)]
private $postcode;
/**
* @var string|null
*/
#[ORM\Column(name: 'bus_country_code', type: 'string', length: 2, nullable: true)]
private $countryCode;
/**
* @var bool|null
*/
#[ORM\Column(name: 'bus_vat_reverse_charge', type: 'boolean', nullable: true)]
private $vatReverseCharge;
/**
* @var string|null
*/
#[ORM\Column(name: 'bus_vat_number_country_code', type: 'string', length: 2, nullable: true)]
private $vatNumberCountryCode;
/**
* @var string|null
*/
#[ORM\Column(name: 'bus_vat_number', type: 'string', length: 16, nullable: true)]
private $vatNumber;
/**
* @var string|null
*/
#[ORM\Column(name: 'bus_vat_business_name', type: 'string', length: 255, nullable: true)]
private $vatBusinessName;
/**
* @var string|null
*/
#[ORM\Column(name: 'bus_vat_address', type: 'string', length: 255, nullable: true)]
private $vatAddress;
/**
* @var string|null
*/
#[ORM\Column(name: 'bus_vat_rate_charged', type: 'decimal', precision: 4, scale: 2, nullable: true)]
private $vatRateCharged;
/**
* @var string|null
*/
#[ORM\Column(name: 'bus_vat_country_charged', type: 'string', length: 2, nullable: true)]
private $vatCountryCharged;
public function __construct(Member $member)
{
$this->member = $member;
}
public function getMember(): Member
{
return $this->member;
}
public function getCompany(): ?string
{
return $this->company;
}
public function setCompany(?string $company): self
{
$this->company = $company;
return $this;
}
public function getAddress1(): ?string
{
return $this->address1;
}
public function setAddress1(?string $address1): self
{
$this->address1 = $address1;
return $this;
}
public function getAddress2(): ?string
{
return $this->address2;
}
public function setAddress2(?string $address2): self
{
$this->address2 = $address2;
return $this;
}
public function getCity(): ?string
{
return $this->city;
}
public function setCity(?string $city): self
{
$this->city = $city;
return $this;
}
public function getRegion(): ?string
{
return $this->region;
}
public function setRegion(?string $region): self
{
$this->region = $region;
return $this;
}
public function getPostcode(): ?string
{
return $this->postcode;
}
public function setPostcode(?string $postcode): self
{
$this->postcode = $postcode;
return $this;
}
public function getCountryCode(): ?string
{
return $this->countryCode;
}
public function setCountryCode(?string $countryCode): self
{
$this->countryCode = $countryCode;
return $this;
}
public function getVatReverseCharge(): ?bool
{
return $this->vatReverseCharge;
}
public function setVatReverseCharge(?bool $vatReverseCharge): self
{
$this->vatReverseCharge = $vatReverseCharge;
return $this;
}
public function getVatNumberCountryCode(): ?string
{
return $this->vatNumberCountryCode;
}
public function setVatNumberCountryCode(?string $vatNumberCountryCode): self
{
$this->vatNumberCountryCode = $vatNumberCountryCode;
return $this;
}
public function getVatNumber(): ?string
{
return $this->vatNumber;
}
public function setVatNumber(?string $vatNumber): self
{
$this->vatNumber = $vatNumber;
return $this;
}
public function getVatBusinessName(): ?string
{
return $this->vatBusinessName;
}
public function setVatBusinessName(?string $vatBusinessName): self
{
$this->vatBusinessName = $vatBusinessName;
return $this;
}
public function getVatAddress(): ?string
{
return $this->vatAddress;
}
public function setVatAddress(?string $vatAddress): self
{
$this->vatAddress = $vatAddress;
return $this;
}
public function getVatRateCharged(): ?string
{
return $this->vatRateCharged;
}
public function setVatRateCharged(?string $vatRateCharged): self
{
$this->vatRateCharged = $vatRateCharged;
return $this;
}
public function getVatCountryCharged(): ?string
{
return $this->vatCountryCharged;
}
public function setVatCountryCharged(?string $vatCountryCharged): self
{
$this->vatCountryCharged = $vatCountryCharged;
return $this;
}
}