app/Entity/Schema/ORM/Business.php line 12

Open in your IDE?
  1. <?php
  2. namespace Sq\Entity\Schema\ORM;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Business.
  6.  */
  7. #[ORM\Entity]
  8. #[ORM\Table(name'business')]
  9. class Business
  10. {
  11.     /**
  12.      * @var Member
  13.      */
  14.     #[ORM\OneToOne(targetEntityMember::class, inversedBy'business')]
  15.     #[ORM\JoinColumn(name'bus_m_id'referencedColumnName'm_id'nullablefalse)]
  16.     #[ORM\Id]
  17.     #[ORM\GeneratedValue(strategy'NONE')]
  18.     private $member;
  19.     /**
  20.      * @var string|null
  21.      */
  22.     #[ORM\Column(name'bus_company'type'string'length64nullabletrue)]
  23.     private $company;
  24.     /**
  25.      * @var string|null
  26.      */
  27.     #[ORM\Column(name'bus_address_1'type'string'length128nullabletrue)]
  28.     private $address1;
  29.     /**
  30.      * @var string|null
  31.      */
  32.     #[ORM\Column(name'bus_address_2'type'string'length128nullabletrue)]
  33.     private $address2;
  34.     /**
  35.      * @var string|null
  36.      */
  37.     #[ORM\Column(name'bus_city'type'string'length64nullabletrue)]
  38.     private $city;
  39.     /**
  40.      * @var string|null
  41.      */
  42.     #[ORM\Column(name'bus_region'type'string'length32nullabletrue)]
  43.     private $region;
  44.     /**
  45.      * @var string|null
  46.      */
  47.     #[ORM\Column(name'bus_postcode'type'string'length12nullabletrue)]
  48.     private $postcode;
  49.     /**
  50.      * @var string|null
  51.      */
  52.     #[ORM\Column(name'bus_country_code'type'string'length2nullabletrue)]
  53.     private $countryCode;
  54.     /**
  55.      * @var bool|null
  56.      */
  57.     #[ORM\Column(name'bus_vat_reverse_charge'type'boolean'nullabletrue)]
  58.     private $vatReverseCharge;
  59.     /**
  60.      * @var string|null
  61.      */
  62.     #[ORM\Column(name'bus_vat_number_country_code'type'string'length2nullabletrue)]
  63.     private $vatNumberCountryCode;
  64.     /**
  65.      * @var string|null
  66.      */
  67.     #[ORM\Column(name'bus_vat_number'type'string'length16nullabletrue)]
  68.     private $vatNumber;
  69.     /**
  70.      * @var string|null
  71.      */
  72.     #[ORM\Column(name'bus_vat_business_name'type'string'length255nullabletrue)]
  73.     private $vatBusinessName;
  74.     /**
  75.      * @var string|null
  76.      */
  77.     #[ORM\Column(name'bus_vat_address'type'string'length255nullabletrue)]
  78.     private $vatAddress;
  79.     /**
  80.      * @var string|null
  81.      */
  82.     #[ORM\Column(name'bus_vat_rate_charged'type'decimal'precision4scale2nullabletrue)]
  83.     private $vatRateCharged;
  84.     /**
  85.      * @var string|null
  86.      */
  87.     #[ORM\Column(name'bus_vat_country_charged'type'string'length2nullabletrue)]
  88.     private $vatCountryCharged;
  89.     public function __construct(Member $member)
  90.     {
  91.         $this->member $member;
  92.     }
  93.     public function getMember(): Member
  94.     {
  95.         return $this->member;
  96.     }
  97.     public function getCompany(): ?string
  98.     {
  99.         return $this->company;
  100.     }
  101.     public function setCompany(?string $company): self
  102.     {
  103.         $this->company $company;
  104.         return $this;
  105.     }
  106.     public function getAddress1(): ?string
  107.     {
  108.         return $this->address1;
  109.     }
  110.     public function setAddress1(?string $address1): self
  111.     {
  112.         $this->address1 $address1;
  113.         return $this;
  114.     }
  115.     public function getAddress2(): ?string
  116.     {
  117.         return $this->address2;
  118.     }
  119.     public function setAddress2(?string $address2): self
  120.     {
  121.         $this->address2 $address2;
  122.         return $this;
  123.     }
  124.     public function getCity(): ?string
  125.     {
  126.         return $this->city;
  127.     }
  128.     public function setCity(?string $city): self
  129.     {
  130.         $this->city $city;
  131.         return $this;
  132.     }
  133.     public function getRegion(): ?string
  134.     {
  135.         return $this->region;
  136.     }
  137.     public function setRegion(?string $region): self
  138.     {
  139.         $this->region $region;
  140.         return $this;
  141.     }
  142.     public function getPostcode(): ?string
  143.     {
  144.         return $this->postcode;
  145.     }
  146.     public function setPostcode(?string $postcode): self
  147.     {
  148.         $this->postcode $postcode;
  149.         return $this;
  150.     }
  151.     public function getCountryCode(): ?string
  152.     {
  153.         return $this->countryCode;
  154.     }
  155.     public function setCountryCode(?string $countryCode): self
  156.     {
  157.         $this->countryCode $countryCode;
  158.         return $this;
  159.     }
  160.     public function getVatReverseCharge(): ?bool
  161.     {
  162.         return $this->vatReverseCharge;
  163.     }
  164.     public function setVatReverseCharge(?bool $vatReverseCharge): self
  165.     {
  166.         $this->vatReverseCharge $vatReverseCharge;
  167.         return $this;
  168.     }
  169.     public function getVatNumberCountryCode(): ?string
  170.     {
  171.         return $this->vatNumberCountryCode;
  172.     }
  173.     public function setVatNumberCountryCode(?string $vatNumberCountryCode): self
  174.     {
  175.         $this->vatNumberCountryCode $vatNumberCountryCode;
  176.         return $this;
  177.     }
  178.     public function getVatNumber(): ?string
  179.     {
  180.         return $this->vatNumber;
  181.     }
  182.     public function setVatNumber(?string $vatNumber): self
  183.     {
  184.         $this->vatNumber $vatNumber;
  185.         return $this;
  186.     }
  187.     public function getVatBusinessName(): ?string
  188.     {
  189.         return $this->vatBusinessName;
  190.     }
  191.     public function setVatBusinessName(?string $vatBusinessName): self
  192.     {
  193.         $this->vatBusinessName $vatBusinessName;
  194.         return $this;
  195.     }
  196.     public function getVatAddress(): ?string
  197.     {
  198.         return $this->vatAddress;
  199.     }
  200.     public function setVatAddress(?string $vatAddress): self
  201.     {
  202.         $this->vatAddress $vatAddress;
  203.         return $this;
  204.     }
  205.     public function getVatRateCharged(): ?string
  206.     {
  207.         return $this->vatRateCharged;
  208.     }
  209.     public function setVatRateCharged(?string $vatRateCharged): self
  210.     {
  211.         $this->vatRateCharged $vatRateCharged;
  212.         return $this;
  213.     }
  214.     public function getVatCountryCharged(): ?string
  215.     {
  216.         return $this->vatCountryCharged;
  217.     }
  218.     public function setVatCountryCharged(?string $vatCountryCharged): self
  219.     {
  220.         $this->vatCountryCharged $vatCountryCharged;
  221.         return $this;
  222.     }
  223. }