src/Entity/System/Address.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\System\AddressRepository")
  6.  *
  7.  * @ORM\Table(name="ps_address", indexes={
  8.  *
  9.  *     @ORM\Index(name="ps_address_iso_vat_number", columns={"iso_vat_number"}),
  10.  *     @ORM\Index(name="iso_code", columns={"iso_code"}),
  11.  *     @ORM\Index(name="vat_number", columns={"vat_number"}),
  12.  *     @ORM\Index(name="active", columns={"active"}),
  13.  *     @ORM\Index(name="ps_address_id_customer_default_invoice_address_index", columns={"id_customer", "default_invoice_address"}),
  14.  *     @ORM\Index(name="id_manufacturer", columns={"id_manufacturer"}),
  15.  *     @ORM\Index(name="default_invoice_address", columns={"default_invoice_address"})
  16.  * })
  17.  */
  18. class Address
  19. {
  20.     public const TYPE_INDIVIDUAL 1;
  21.     public const TYPE_SELF_EMPLOYED 2;
  22.     public const TYPE_COMPANY 3;
  23.     public const CUSTOMER_TYPE_IDS_INDEXED_BY_TYPE_VALUES = [
  24.         'INDIVIDUAL' => self::TYPE_INDIVIDUAL,
  25.         'SELF_EMPLOYED' => self::TYPE_SELF_EMPLOYED,
  26.         'COMPANY' => self::TYPE_COMPANY,
  27.     ];
  28.     /**
  29.      * @var int
  30.      *
  31.      * @ORM\Id
  32.      *
  33.      * @ORM\GeneratedValue(strategy="AUTO")
  34.      *
  35.      * @ORM\Column(type="integer", name="id_address")
  36.      */
  37.     private $id;
  38.     /**
  39.      * @var Country
  40.      *
  41.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Country", inversedBy="addresses")
  42.      *
  43.      * @ORM\JoinColumn(referencedColumnName="id_country", name="id_country", nullable=false)
  44.      */
  45.     private $country;
  46.     /**
  47.      * @var State|null
  48.      *
  49.      * @ORM\ManyToOne(targetEntity="App\Entity\System\State")
  50.      *
  51.      * @ORM\JoinColumn(referencedColumnName="id_state", name="id_state", nullable=true)
  52.      */
  53.     private $state;
  54.     /**
  55.      * @var string|null
  56.      *
  57.      * @ORM\Column(type="string", length=50, name="state_name", nullable=true)
  58.      */
  59.     private $stateName;
  60.     /**
  61.      * @var int|null
  62.      *
  63.      * @ORM\Column(type="integer", name="id_manufacturer", length=10, options={"default" : 0})
  64.      */
  65.     private $manufacturer;
  66.     /**
  67.      * @var string|null
  68.      *
  69.      * @ORM\Column(type="string", length=32, nullable=true)
  70.      */
  71.     private $alias;
  72.     /**
  73.      * @var string|null
  74.      *
  75.      * @ORM\Column(type="string", length=64, nullable=true)
  76.      */
  77.     private $company;
  78.     /**
  79.      * @var string|null
  80.      *
  81.      * @ORM\Column(type="string", length=32, nullable=true)
  82.      */
  83.     private $name;
  84.     /**
  85.      * @var string
  86.      *
  87.      * @ORM\Column(type="string", length=128)
  88.      */
  89.     private $email;
  90.     /**
  91.      * @var string|null
  92.      *
  93.      * @ORM\Column(type="string", length=32, nullable=true)
  94.      */
  95.     private $surnames;
  96.     /**
  97.      * @var string
  98.      *
  99.      * @ORM\Column(type="string", length=128)
  100.      */
  101.     private $address1;
  102.     /**
  103.      * @var string|null
  104.      *
  105.      * @ORM\Column(type="string", length=128, nullable=true)
  106.      */
  107.     private $address2;
  108.     /**
  109.      * @var string|null
  110.      *
  111.      * @ORM\Column(type="string", length=12, nullable=true)
  112.      */
  113.     private $postcode;
  114.     /**
  115.      * @var string
  116.      *
  117.      * @ORM\Column(type="string", length=64)
  118.      */
  119.     private $city;
  120.     /**
  121.      * @var string|null
  122.      *
  123.      * @ORM\Column(type="text", nullable=true)
  124.      */
  125.     private $other;
  126.     /**
  127.      * @var string|null
  128.      *
  129.      * @ORM\Column(type="string", length=32, nullable=true)
  130.      */
  131.     private $phone;
  132.     /**
  133.      * @var string|null
  134.      *
  135.      * @ORM\Column(type="string", length=32, nullable=true)
  136.      */
  137.     private $phoneMobile;
  138.     /**
  139.      * @var string|null
  140.      *
  141.      * @ORM\Column(type="string", length=32, nullable=true)
  142.      */
  143.     private $vatNumber;
  144.     /**
  145.      * @var \DateTime
  146.      *
  147.      * @ORM\Column(type="datetime")
  148.      */
  149.     private $dateAdd;
  150.     /**
  151.      * @var \DateTime
  152.      *
  153.      * @ORM\Column(type="datetime")
  154.      */
  155.     private $dateUpd;
  156.     /**
  157.      * @var bool
  158.      *
  159.      * @ORM\Column(type="boolean", options={"default" : 1})
  160.      */
  161.     private $active;
  162.     /**
  163.      * @var bool
  164.      *
  165.      * @ORM\Column(type="boolean", options={"default" : 0})
  166.      */
  167.     private $invoiceAddress;
  168.     /**
  169.      * @var bool
  170.      *
  171.      * @ORM\Column(type="boolean", options={"default" : 0})
  172.      */
  173.     private $defaultInvoiceAddress;
  174.     /**
  175.      * @var bool
  176.      *
  177.      * @ORM\Column(type="boolean", options={"default" : 0})
  178.      */
  179.     private $defaultShippingAddress;
  180.     /**
  181.      * @ORM\Column(type="boolean", nullable=true, options={"default" : 0})
  182.      */
  183.     private bool $vise;
  184.     /**
  185.      * @var bool|null
  186.      *
  187.      * @ORM\Column(type="boolean", length=4, nullable=true, options={"default" : 0})
  188.      */
  189.     private $re;
  190.     /**
  191.      * @var string|null
  192.      *
  193.      * @ORM\Column(type="string", length=3, nullable=true)
  194.      */
  195.     private $isoCode;
  196.     /**
  197.      * @var string|null
  198.      *
  199.      * @ORM\Column(type="string", length=128, nullable=true)
  200.      */
  201.     private $comercialName;
  202.     /**
  203.      * @var int|null
  204.      *
  205.      * @ORM\Column(type="integer",length=1, nullable=true, options={"default" : 1}))
  206.      */
  207.     private $typeCustomer;
  208.     /**
  209.      * @var string|null
  210.      *
  211.      * @ORM\Column(type="string", length=50, nullable=true, options={"default" : "1"})
  212.      */
  213.     private $contactName;
  214.     /**
  215.      * @var string|null
  216.      *
  217.      * @ORM\Column(type="string", length=50, nullable=true, options={"default" : "1"})
  218.      */
  219.     private $url;
  220.     /**
  221.      * @var int
  222.      *
  223.      * @ORM\Column(type="integer", length=10, options={"default" : 0})
  224.      */
  225.     private $phonePrefix;
  226.     /**
  227.      * @var int
  228.      *
  229.      * @ORM\Column(type="integer", length=10, options={"default" : 0})
  230.      */
  231.     private $phoneMobilePrefix;
  232.     /**
  233.      * @var int|null
  234.      *
  235.      * @ORM\Column(type="integer", length=4, nullable=true)
  236.      */
  237.     private $favorite;
  238.     /**
  239.      * @var string|null
  240.      *
  241.      * @ORM\Column(type="string", length=64, nullable=true)
  242.      */
  243.     private $companyName;
  244.     /**
  245.      * @var string|null
  246.      *
  247.      * @ORM\Column(type="string", length=3, nullable=true)
  248.      */
  249.     private $isoVatNumber;
  250.     /**
  251.      * @var Customer
  252.      *
  253.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Customer", inversedBy="addresses")
  254.      *
  255.      * @ORM\JoinColumn(name="id_customer", referencedColumnName="id_customer", nullable=false)
  256.      */
  257.     private $customer;
  258.     /**
  259.      * @ORM\Column(type="boolean", nullable=true, options={"default" : 0})
  260.      */
  261.     private bool $companyVerified false;
  262.     public function __construct()
  263.     {
  264.         $this->dateUpd = new \DateTime();
  265.         $this->active true;
  266.         $this->invoiceAddress true;
  267.         $this->defaultInvoiceAddress false;
  268.         $this->defaultShippingAddress false;
  269.         $this->vise false;
  270.         $this->re false;
  271.         $this->typeCustomer true;
  272.         $this->contactName '1';
  273.         $this->phonePrefix 0;
  274.         $this->phoneMobilePrefix 0;
  275.         $this->favorite 0;
  276.         $this->manufacturer 0;
  277.     }
  278.     public static function createEmptyInvoiceAddress(string $customerEmail, \DateTime $dateTime, ?State $state): Address
  279.     {
  280.         $address = new self();
  281.         $address->email $customerEmail;
  282.         $address->address1 '';
  283.         $address->city '';
  284.         $address->dateAdd $dateTime;
  285.         $address->state $state;
  286.         $address->defaultInvoiceAddress true;
  287.         $address->invoiceAddress true;
  288.         return $address;
  289.     }
  290.     /**
  291.      * @return int
  292.      */
  293.     public function getId(): int
  294.     {
  295.         return $this->id;
  296.     }
  297.     /**
  298.      * @param int $id
  299.      *
  300.      * @return Address
  301.      */
  302.     public function setId(int $id): Address
  303.     {
  304.         $this->id $id;
  305.         return $this;
  306.     }
  307.     /**
  308.      * @return Country
  309.      */
  310.     public function getCountry(): Country
  311.     {
  312.         return $this->country;
  313.     }
  314.     /**
  315.      * @param Country $country
  316.      *
  317.      * @return Address
  318.      */
  319.     public function setCountry(Country $country): Address
  320.     {
  321.         $this->country $country;
  322.         return $this;
  323.     }
  324.     /**
  325.      * @return State|null
  326.      */
  327.     public function getState(): ?State
  328.     {
  329.         if ($this->state && $this->state->getId() === 0) {
  330.             return null;
  331.         }
  332.         return $this->state;
  333.     }
  334.     /**
  335.      * @param State|null $state
  336.      *
  337.      * @return Address
  338.      */
  339.     public function setState(?State $state): Address
  340.     {
  341.         $this->state $state;
  342.         return $this;
  343.     }
  344.     /**
  345.      * @return string|null
  346.      */
  347.     public function getStateName(): ?string
  348.     {
  349.         return $this->stateName;
  350.     }
  351.     /**
  352.      * @param string|null $stateName
  353.      *
  354.      * @return Address
  355.      */
  356.     public function setStateName(?string $stateName): Address
  357.     {
  358.         $this->stateName $stateName;
  359.         return $this;
  360.     }
  361.     /**
  362.      * @return string|null
  363.      */
  364.     public function getAlias(): ?string
  365.     {
  366.         return $this->alias;
  367.     }
  368.     /**
  369.      * @param string|null $alias
  370.      *
  371.      * @return Address
  372.      */
  373.     public function setAlias(?string $alias): Address
  374.     {
  375.         $this->alias $alias;
  376.         return $this;
  377.     }
  378.     /**
  379.      * @return string|null
  380.      */
  381.     public function getCompany(): ?string
  382.     {
  383.         return $this->company;
  384.     }
  385.     /**
  386.      * @param string|null $company
  387.      *
  388.      * @return Address
  389.      */
  390.     public function setCompany(?string $company): Address
  391.     {
  392.         $this->company $company;
  393.         return $this;
  394.     }
  395.     /**
  396.      * @return string|null
  397.      */
  398.     public function getName(): ?string
  399.     {
  400.         return $this->name;
  401.     }
  402.     /**
  403.      * @param string|null $name
  404.      *
  405.      * @return Address
  406.      */
  407.     public function setName(?string $name): Address
  408.     {
  409.         $this->name $name;
  410.         return $this;
  411.     }
  412.     /**
  413.      * @return string
  414.      */
  415.     public function getEmail(): string
  416.     {
  417.         return $this->email;
  418.     }
  419.     /**
  420.      * @param string $email
  421.      *
  422.      * @return Address
  423.      */
  424.     public function setEmail(string $email): Address
  425.     {
  426.         $this->email $email;
  427.         return $this;
  428.     }
  429.     /**
  430.      * @return string|null
  431.      */
  432.     public function getSurnames(): ?string
  433.     {
  434.         return $this->surnames;
  435.     }
  436.     /**
  437.      * @param string|null $surnames
  438.      *
  439.      * @return Address
  440.      */
  441.     public function setSurnames(?string $surnames): Address
  442.     {
  443.         $this->surnames $surnames;
  444.         return $this;
  445.     }
  446.     /**
  447.      * @return string
  448.      */
  449.     public function getAddress1(): string
  450.     {
  451.         return $this->address1;
  452.     }
  453.     /**
  454.      * @param string $address1
  455.      *
  456.      * @return Address
  457.      */
  458.     public function setAddress1(string $address1): Address
  459.     {
  460.         $this->address1 $address1;
  461.         return $this;
  462.     }
  463.     /**
  464.      * @return string|null
  465.      */
  466.     public function getAddress2(): ?string
  467.     {
  468.         return $this->address2;
  469.     }
  470.     /**
  471.      * @param string|null $address2
  472.      *
  473.      * @return Address
  474.      */
  475.     public function setAddress2(?string $address2): Address
  476.     {
  477.         $this->address2 $address2;
  478.         return $this;
  479.     }
  480.     /**
  481.      * @return string|null
  482.      */
  483.     public function getPostcode(): ?string
  484.     {
  485.         return $this->postcode;
  486.     }
  487.     /**
  488.      * @param string|null $postcode
  489.      *
  490.      * @return Address
  491.      */
  492.     public function setPostcode(?string $postcode): Address
  493.     {
  494.         $this->postcode $postcode;
  495.         return $this;
  496.     }
  497.     /**
  498.      * @return string
  499.      */
  500.     public function getCity(): string
  501.     {
  502.         return $this->city;
  503.     }
  504.     /**
  505.      * @param string $city
  506.      *
  507.      * @return Address
  508.      */
  509.     public function setCity(string $city): Address
  510.     {
  511.         $this->city $city;
  512.         return $this;
  513.     }
  514.     /**
  515.      * @return string|null
  516.      */
  517.     public function getOther(): ?string
  518.     {
  519.         return $this->other;
  520.     }
  521.     /**
  522.      * @param string|null $other
  523.      *
  524.      * @return Address
  525.      */
  526.     public function setOther(?string $other): Address
  527.     {
  528.         $this->other $other;
  529.         return $this;
  530.     }
  531.     /**
  532.      * @return string|null
  533.      */
  534.     public function getPhone(): ?string
  535.     {
  536.         return $this->phone;
  537.     }
  538.     /**
  539.      * @param string|null $phone
  540.      *
  541.      * @return Address
  542.      */
  543.     public function setPhone(?string $phone): Address
  544.     {
  545.         $this->phone $phone;
  546.         return $this;
  547.     }
  548.     /**
  549.      * @return string|null
  550.      */
  551.     public function getPhoneMobile(): ?string
  552.     {
  553.         return $this->phoneMobile;
  554.     }
  555.     /**
  556.      * @param string|null $phoneMobile
  557.      *
  558.      * @return Address
  559.      */
  560.     public function setPhoneMobile(?string $phoneMobile): Address
  561.     {
  562.         $this->phoneMobile $phoneMobile;
  563.         return $this;
  564.     }
  565.     /**
  566.      * @return string|null
  567.      */
  568.     public function getVatNumber(): ?string
  569.     {
  570.         return $this->vatNumber;
  571.     }
  572.     /**
  573.      * @param string|null $vatNumber
  574.      *
  575.      * @return Address
  576.      */
  577.     public function setVatNumber(?string $vatNumber): Address
  578.     {
  579.         $this->vatNumber preg_replace('/[^A-Za-z0-9]/i'''$vatNumber);
  580.         return $this;
  581.     }
  582.     /**
  583.      * @return \DateTime
  584.      */
  585.     public function getDateAdd(): \DateTime
  586.     {
  587.         return $this->dateAdd;
  588.     }
  589.     /**
  590.      * @param \DateTime $dateAdd
  591.      *
  592.      * @return Address
  593.      */
  594.     public function setDateAdd(\DateTime $dateAdd): Address
  595.     {
  596.         $this->dateAdd $dateAdd;
  597.         return $this;
  598.     }
  599.     /**
  600.      * @return \DateTime
  601.      */
  602.     public function getDateUpd(): \DateTime
  603.     {
  604.         return $this->dateUpd;
  605.     }
  606.     /**
  607.      * @param \DateTime $dateUpd
  608.      *
  609.      * @return Address
  610.      */
  611.     public function setDateUpd(\DateTime $dateUpd): Address
  612.     {
  613.         $this->dateUpd $dateUpd;
  614.         return $this;
  615.     }
  616.     /**
  617.      * @return bool
  618.      */
  619.     public function isActive(): bool
  620.     {
  621.         return $this->active;
  622.     }
  623.     /**
  624.      * @param bool $active
  625.      *
  626.      * @return Address
  627.      */
  628.     public function setActive(bool $active): Address
  629.     {
  630.         $this->active $active;
  631.         return $this;
  632.     }
  633.     /**
  634.      * @return bool
  635.      */
  636.     public function isInvoiceAddress(): bool
  637.     {
  638.         return $this->invoiceAddress;
  639.     }
  640.     /**
  641.      * @param bool $invoiceAddress
  642.      *
  643.      * @return Address
  644.      */
  645.     public function setInvoiceAddress(bool $invoiceAddress): Address
  646.     {
  647.         $this->invoiceAddress $invoiceAddress;
  648.         return $this;
  649.     }
  650.     /**
  651.      * @return bool
  652.      */
  653.     public function isDefaultInvoiceAddress(): bool
  654.     {
  655.         return $this->defaultInvoiceAddress;
  656.     }
  657.     /**
  658.      * @param bool $defaultInvoiceAddress
  659.      *
  660.      * @return Address
  661.      */
  662.     public function setDefaultInvoiceAddress(bool $defaultInvoiceAddress): Address
  663.     {
  664.         $this->defaultInvoiceAddress $defaultInvoiceAddress;
  665.         return $this;
  666.     }
  667.     /**
  668.      * @return bool
  669.      */
  670.     public function isDefaultShippingAddress(): bool
  671.     {
  672.         return $this->defaultShippingAddress;
  673.     }
  674.     /**
  675.      * @param bool $defaultShippingAddress
  676.      *
  677.      * @return Address
  678.      */
  679.     public function setDefaultShippingAddress(bool $defaultShippingAddress): Address
  680.     {
  681.         $this->defaultShippingAddress $defaultShippingAddress;
  682.         return $this;
  683.     }
  684.     /**
  685.      * @return bool|null
  686.      */
  687.     public function getVise(): ?bool
  688.     {
  689.         return $this->vise;
  690.     }
  691.     /**
  692.      * @param bool|null $vise
  693.      *
  694.      * @return Address
  695.      */
  696.     public function setVise(?bool $vise): Address
  697.     {
  698.         $this->vise $vise;
  699.         return $this;
  700.     }
  701.     public function getRe(): ?bool
  702.     {
  703.         return $this->re;
  704.     }
  705.     public function setRe(?bool $re): Address
  706.     {
  707.         $this->re $re;
  708.         return $this;
  709.     }
  710.     /**
  711.      * @return string|null
  712.      */
  713.     public function getIsoCode(): ?string
  714.     {
  715.         return $this->isoCode;
  716.     }
  717.     /**
  718.      * @param string|null $isoCode
  719.      *
  720.      * @return Address
  721.      */
  722.     public function setIsoCode(?string $isoCode): Address
  723.     {
  724.         $this->isoCode $isoCode;
  725.         return $this;
  726.     }
  727.     /**
  728.      * @return string|null
  729.      */
  730.     public function getComercialName(): ?string
  731.     {
  732.         return $this->comercialName;
  733.     }
  734.     /**
  735.      * @param string|null $comercialName
  736.      *
  737.      * @return Address
  738.      */
  739.     public function setComercialName(?string $comercialName): Address
  740.     {
  741.         $this->comercialName $comercialName;
  742.         return $this;
  743.     }
  744.     /**
  745.      * @return int|null
  746.      */
  747.     public function getTypeCustomer(): ?int
  748.     {
  749.         return $this->typeCustomer;
  750.     }
  751.     /**
  752.      * @param int $typeCustomer
  753.      *
  754.      * @return Address
  755.      */
  756.     public function setTypeCustomer(int $typeCustomer): Address
  757.     {
  758.         $this->typeCustomer $typeCustomer;
  759.         return $this;
  760.     }
  761.     /**
  762.      * @return string|null
  763.      */
  764.     public function getContactName(): ?string
  765.     {
  766.         return $this->contactName;
  767.     }
  768.     /**
  769.      * @param string|null $contactName
  770.      *
  771.      * @return Address
  772.      */
  773.     public function setContactName(?string $contactName): Address
  774.     {
  775.         $this->contactName $contactName;
  776.         return $this;
  777.     }
  778.     /**
  779.      * @return string|null
  780.      */
  781.     public function getUrl(): ?string
  782.     {
  783.         return $this->url;
  784.     }
  785.     /**
  786.      * @param string|null $url
  787.      *
  788.      * @return Address
  789.      */
  790.     public function setUrl(?string $url): Address
  791.     {
  792.         $this->url $url;
  793.         return $this;
  794.     }
  795.     /**
  796.      * @return int
  797.      */
  798.     public function getPhonePrefix(): int
  799.     {
  800.         return $this->phonePrefix;
  801.     }
  802.     /**
  803.      * @param int $phonePrefix
  804.      *
  805.      * @return Address
  806.      */
  807.     public function setPhonePrefix(int $phonePrefix): Address
  808.     {
  809.         $this->phonePrefix $phonePrefix;
  810.         return $this;
  811.     }
  812.     /**
  813.      * @return int
  814.      */
  815.     public function getPhoneMobilePrefix(): int
  816.     {
  817.         return $this->phoneMobilePrefix;
  818.     }
  819.     /**
  820.      * @param int $phoneMobilePrefix
  821.      *
  822.      * @return Address
  823.      */
  824.     public function setPhoneMobilePrefix(int $phoneMobilePrefix): Address
  825.     {
  826.         $this->phoneMobilePrefix $phoneMobilePrefix;
  827.         return $this;
  828.     }
  829.     /**
  830.      * @return int|null
  831.      */
  832.     public function getFavorite(): ?int
  833.     {
  834.         return $this->favorite;
  835.     }
  836.     /**
  837.      * @param int|null $favorite
  838.      *
  839.      * @return Address
  840.      */
  841.     public function setFavorite(?int $favorite): Address
  842.     {
  843.         $this->favorite $favorite;
  844.         return $this;
  845.     }
  846.     /**
  847.      * @return string|null
  848.      */
  849.     public function getCompanyName(): ?string
  850.     {
  851.         return $this->companyName;
  852.     }
  853.     /**
  854.      * @param string|null $companyName
  855.      *
  856.      * @return Address
  857.      */
  858.     public function setCompanyName(?string $companyName): Address
  859.     {
  860.         $this->companyName $companyName;
  861.         return $this;
  862.     }
  863.     public function getCustomer(): ?Customer
  864.     {
  865.         return $this->customer;
  866.     }
  867.     public function setCustomer(?Customer $customer): self
  868.     {
  869.         $this->customer $customer;
  870.         return $this;
  871.     }
  872.     /**
  873.      * @return int|null
  874.      */
  875.     public function getManufacturer(): ?int
  876.     {
  877.         return $this->manufacturer;
  878.     }
  879.     /**
  880.      * @param int|null $manufacturer
  881.      *
  882.      * @return Address
  883.      */
  884.     public function setManufacturer(?int $manufacturer): self
  885.     {
  886.         $this->manufacturer $manufacturer;
  887.         return $this;
  888.     }
  889.     /**
  890.      * @return string|null
  891.      */
  892.     public function getIsoVatNumber(): ?string
  893.     {
  894.         return $this->isoVatNumber;
  895.     }
  896.     /**
  897.      * @param string|null $isoVatNumber
  898.      *
  899.      * @return Address
  900.      */
  901.     public function setIsoVatNumber(?string $isoVatNumber): self
  902.     {
  903.         $this->isoVatNumber $isoVatNumber;
  904.         return $this;
  905.     }
  906.     public function isCompanyVerified(): bool
  907.     {
  908.         return $this->companyVerified;
  909.     }
  910.     public function setCompanyVerified(bool $companyVerified): Address
  911.     {
  912.         $this->companyVerified $companyVerified;
  913.         return $this;
  914.     }
  915.     public function getFullName(): ?string
  916.     {
  917.         return $this->name.' '.$this->surnames;
  918.     }
  919. }