<?php
namespace Proxies\__CG__\App\Entity;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class Company extends \App\Entity\Company implements \Doctrine\ORM\Proxy\Proxy
{
/**
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
* initialization process and an array of ordered parameters that were passed to that method.
*
* @see \Doctrine\Common\Proxy\Proxy::__setInitializer
*/
public $__initializer__;
/**
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
*
* @see \Doctrine\Common\Proxy\Proxy::__setCloner
*/
public $__cloner__;
/**
* @var boolean flag indicating if this object was already initialized
*
* @see \Doctrine\Persistence\Proxy::__isInitialized
*/
public $__isInitialized__ = false;
/**
* @var array<string, null> properties to be lazy loaded, indexed by property name
*/
public static $lazyPropertiesNames = array (
);
/**
* @var array<string, mixed> default values of properties to be lazy loaded, with keys being the property names
*
* @see \Doctrine\Common\Proxy\Proxy::__getLazyProperties
*/
public static $lazyPropertiesDefaults = array (
);
public function __construct(?\Closure $initializer = null, ?\Closure $cloner = null)
{
$this->__initializer__ = $initializer;
$this->__cloner__ = $cloner;
}
/**
*
* @return array
*/
public function __sleep()
{
if ($this->__isInitialized__) {
return ['__isInitialized__', 'id', 'bankAccount', 'banned', 'consigneeAddresses', 'contract', 'contractNumber', 'contractValidTo', 'currency', 'deliveryAddresses', 'electronicInvoicingIdentifier', 'electronicInvoicingIdentifierScheme', 'electronicInvoicingIntermediator', 'endCustomers', 'indirect', 'invoiceAddresses', 'name', 'notes', 'priceGroup', 'potentialCustomer', 'salesCases', 'termsOfPaymentRows', 'warranty', 'addressRow1', 'addressRow2', 'addressRow3', 'addressRow4', 'city', 'contactPersonEmail', 'contactPersonName', 'country', 'postalCode', 'vatId', 'termsOfDelivery', 'termsOfDeliveryRules', 'transportation'];
}
return ['__isInitialized__', 'id', 'bankAccount', 'banned', 'consigneeAddresses', 'contract', 'contractNumber', 'contractValidTo', 'currency', 'deliveryAddresses', 'electronicInvoicingIdentifier', 'electronicInvoicingIdentifierScheme', 'electronicInvoicingIntermediator', 'endCustomers', 'indirect', 'invoiceAddresses', 'name', 'notes', 'priceGroup', 'potentialCustomer', 'salesCases', 'termsOfPaymentRows', 'warranty', 'addressRow1', 'addressRow2', 'addressRow3', 'addressRow4', 'city', 'contactPersonEmail', 'contactPersonName', 'country', 'postalCode', 'vatId', 'termsOfDelivery', 'termsOfDeliveryRules', 'transportation'];
}
/**
*
*/
public function __wakeup()
{
if ( ! $this->__isInitialized__) {
$this->__initializer__ = function (Company $proxy) {
$proxy->__setInitializer(null);
$proxy->__setCloner(null);
$existingProperties = get_object_vars($proxy);
foreach ($proxy::$lazyPropertiesDefaults as $property => $defaultValue) {
if ( ! array_key_exists($property, $existingProperties)) {
$proxy->$property = $defaultValue;
}
}
};
}
}
/**
*
*/
public function __clone()
{
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
}
/**
* Forces initialization of the proxy
*/
public function __load(): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __isInitialized(): bool
{
return $this->__isInitialized__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setInitialized($initialized): void
{
$this->__isInitialized__ = $initialized;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setInitializer(?\Closure $initializer = null): void
{
$this->__initializer__ = $initializer;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __getInitializer(): ?\Closure
{
return $this->__initializer__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setCloner(?\Closure $cloner = null): void
{
$this->__cloner__ = $cloner;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific cloning logic
*/
public function __getCloner(): ?\Closure
{
return $this->__cloner__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
* @deprecated no longer in use - generated code now relies on internal components rather than generated public API
* @static
*/
public function __getLazyProperties(): array
{
return self::$lazyPropertiesDefaults;
}
/**
* {@inheritDoc}
*/
public function __toString(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', []);
return parent::__toString();
}
/**
* {@inheritDoc}
*/
public function addTermsOfPaymentRow(\App\Entity\TermsOfPaymentRow $row): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addTermsOfPaymentRow', [$row]);
parent::addTermsOfPaymentRow($row);
}
/**
* {@inheritDoc}
*/
public function getAdditionalAddressCount(): int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAdditionalAddressCount', []);
return parent::getAdditionalAddressCount();
}
/**
* {@inheritDoc}
*/
public function getBankAccount(): ?\App\Entity\BankAccount
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getBankAccount', []);
return parent::getBankAccount();
}
/**
* {@inheritDoc}
*/
public function getConsigneeAddresses(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getConsigneeAddresses', []);
return parent::getConsigneeAddresses();
}
/**
* {@inheritDoc}
*/
public function getContract(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getContract', []);
return parent::getContract();
}
/**
* {@inheritDoc}
*/
public function getContractNumber(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getContractNumber', []);
return parent::getContractNumber();
}
/**
* {@inheritDoc}
*/
public function getContractValidTo(): ?\DateTime
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getContractValidTo', []);
return parent::getContractValidTo();
}
/**
* {@inheritDoc}
*/
public function getCurrency(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCurrency', []);
return parent::getCurrency();
}
/**
* {@inheritDoc}
*/
public function getDeliveryAddresses(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDeliveryAddresses', []);
return parent::getDeliveryAddresses();
}
/**
* {@inheritDoc}
*/
public function getElectronicInvoicingIdentifier(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getElectronicInvoicingIdentifier', []);
return parent::getElectronicInvoicingIdentifier();
}
/**
* {@inheritDoc}
*/
public function getElectronicInvoicingIdentifierScheme(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getElectronicInvoicingIdentifierScheme', []);
return parent::getElectronicInvoicingIdentifierScheme();
}
/**
* {@inheritDoc}
*/
public function getElectronicInvoicingIntermediator(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getElectronicInvoicingIntermediator', []);
return parent::getElectronicInvoicingIntermediator();
}
/**
* {@inheritDoc}
*/
public function getEndCustomers(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getEndCustomers', []);
return parent::getEndCustomers();
}
/**
* {@inheritDoc}
*/
public function getId(): ?int
{
if ($this->__isInitialized__ === false) {
return (int) parent::getId();
}
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
return parent::getId();
}
/**
* {@inheritDoc}
*/
public function getInvoiceAddresses(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getInvoiceAddresses', []);
return parent::getInvoiceAddresses();
}
/**
* {@inheritDoc}
*/
public function getInvoicingAddresses(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getInvoicingAddresses', []);
return parent::getInvoicingAddresses();
}
/**
* {@inheritDoc}
*/
public function getNotes(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getNotes', []);
return parent::getNotes();
}
/**
* {@inheritDoc}
*/
public function getPotentialCustomer(): ?\App\Entity\PotentialCustomerCompany
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPotentialCustomer', []);
return parent::getPotentialCustomer();
}
/**
* {@inheritDoc}
*/
public function getPriceGroup(): ?\App\Entity\CompanySalesPriceGroup
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPriceGroup', []);
return parent::getPriceGroup();
}
/**
* {@inheritDoc}
*/
public function getSalesCases(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSalesCases', []);
return parent::getSalesCases();
}
/**
* {@inheritDoc}
*/
public function getTermsOfPaymentRows(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTermsOfPaymentRows', []);
return parent::getTermsOfPaymentRows();
}
/**
* {@inheritDoc}
*/
public function getWarranty(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getWarranty', []);
return parent::getWarranty();
}
/**
* {@inheritDoc}
*/
public function isBanned(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isBanned', []);
return parent::isBanned();
}
/**
* {@inheritDoc}
*/
public function isDefaultCurrency(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isDefaultCurrency', []);
return parent::isDefaultCurrency();
}
/**
* {@inheritDoc}
*/
public function isIndirect(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isIndirect', []);
return parent::isIndirect();
}
/**
* {@inheritDoc}
*/
public function removeTermsOfPaymentRow(\App\Entity\TermsOfPaymentRow $row)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeTermsOfPaymentRow', [$row]);
return parent::removeTermsOfPaymentRow($row);
}
/**
* {@inheritDoc}
*/
public function setBankAccount(\App\Entity\BankAccount $bankAccount)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBankAccount', [$bankAccount]);
return parent::setBankAccount($bankAccount);
}
/**
* {@inheritDoc}
*/
public function setBanned(bool $banned)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBanned', [$banned]);
return parent::setBanned($banned);
}
/**
* {@inheritDoc}
*/
public function setContract(?string $contract)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setContract', [$contract]);
return parent::setContract($contract);
}
/**
* {@inheritDoc}
*/
public function setContractNumber(?string $contractNumber)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setContractNumber', [$contractNumber]);
return parent::setContractNumber($contractNumber);
}
/**
* {@inheritDoc}
*/
public function setContractValidTo(?\DateTime $contractValidTo)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setContractValidTo', [$contractValidTo]);
return parent::setContractValidTo($contractValidTo);
}
/**
* {@inheritDoc}
*/
public function setCurrency(string $currency)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCurrency', [$currency]);
return parent::setCurrency($currency);
}
/**
* {@inheritDoc}
*/
public function setElectronicInvoicingIdentifier(?string $electronicInvoicingIdentifier): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setElectronicInvoicingIdentifier', [$electronicInvoicingIdentifier]);
parent::setElectronicInvoicingIdentifier($electronicInvoicingIdentifier);
}
/**
* {@inheritDoc}
*/
public function setElectronicInvoicingIdentifierScheme(?string $electronicInvoicingIdentifierScheme): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setElectronicInvoicingIdentifierScheme', [$electronicInvoicingIdentifierScheme]);
parent::setElectronicInvoicingIdentifierScheme($electronicInvoicingIdentifierScheme);
}
/**
* {@inheritDoc}
*/
public function setElectronicInvoicingIntermediator(?string $electronicInvoicingIntermediator): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setElectronicInvoicingIntermediator', [$electronicInvoicingIntermediator]);
parent::setElectronicInvoicingIntermediator($electronicInvoicingIntermediator);
}
/**
* {@inheritDoc}
*/
public function setIndirect(bool $indirect)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIndirect', [$indirect]);
return parent::setIndirect($indirect);
}
/**
* {@inheritDoc}
*/
public function setNotes(?string $notes)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setNotes', [$notes]);
return parent::setNotes($notes);
}
/**
* {@inheritDoc}
*/
public function setPotentialCustomer(?\App\Entity\PotentialCustomerCompany $potentialCustomer)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPotentialCustomer', [$potentialCustomer]);
return parent::setPotentialCustomer($potentialCustomer);
}
/**
* {@inheritDoc}
*/
public function setPriceGroup(?\App\Entity\CompanySalesPriceGroup $priceGroup)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPriceGroup', [$priceGroup]);
return parent::setPriceGroup($priceGroup);
}
/**
* {@inheritDoc}
*/
public function setWarranty(?string $warranty)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setWarranty', [$warranty]);
return parent::setWarranty($warranty);
}
/**
* {@inheritDoc}
*/
public function validatePriceGroupCurrency(\Symfony\Component\Validator\Context\ExecutionContextInterface $context)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'validatePriceGroupCurrency', [$context]);
return parent::validatePriceGroupCurrency($context);
}
/**
* {@inheritDoc}
*/
public function getAddress(bool $excludeCountry = false): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAddress', [$excludeCountry]);
return parent::getAddress($excludeCountry);
}
/**
* {@inheritDoc}
*/
public function getAddressRow1(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAddressRow1', []);
return parent::getAddressRow1();
}
/**
* {@inheritDoc}
*/
public function getAddressRow2(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAddressRow2', []);
return parent::getAddressRow2();
}
/**
* {@inheritDoc}
*/
public function getAddressRow3(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAddressRow3', []);
return parent::getAddressRow3();
}
/**
* {@inheritDoc}
*/
public function getAddressRow4(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAddressRow4', []);
return parent::getAddressRow4();
}
/**
* {@inheritDoc}
*/
public function getCity(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCity', []);
return parent::getCity();
}
/**
* {@inheritDoc}
*/
public function getContactPersonEmail(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getContactPersonEmail', []);
return parent::getContactPersonEmail();
}
/**
* {@inheritDoc}
*/
public function getContactPersonName(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getContactPersonName', []);
return parent::getContactPersonName();
}
/**
* {@inheritDoc}
*/
public function getCountry(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCountry', []);
return parent::getCountry();
}
/**
* {@inheritDoc}
*/
public function getCountryName(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCountryName', []);
return parent::getCountryName();
}
/**
* {@inheritDoc}
*/
public function getName(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
return parent::getName();
}
/**
* {@inheritDoc}
*/
public function getPostalCode(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPostalCode', []);
return parent::getPostalCode();
}
/**
* {@inheritDoc}
*/
public function getVatId(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getVatId', []);
return parent::getVatId();
}
/**
* {@inheritDoc}
*/
public function isEu(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isEu', []);
return parent::isEu();
}
/**
* {@inheritDoc}
*/
public function populate(\App\Entity\AddressInterface $address): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'populate', [$address]);
parent::populate($address);
}
/**
* {@inheritDoc}
*/
public function serializeAddress(): array
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'serializeAddress', []);
return parent::serializeAddress();
}
/**
* {@inheritDoc}
*/
public function setAddressRow1(?string $addressRow1)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAddressRow1', [$addressRow1]);
return parent::setAddressRow1($addressRow1);
}
/**
* {@inheritDoc}
*/
public function setAddressRow2(?string $addressRow2)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAddressRow2', [$addressRow2]);
return parent::setAddressRow2($addressRow2);
}
/**
* {@inheritDoc}
*/
public function setAddressRow3(?string $addressRow3)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAddressRow3', [$addressRow3]);
return parent::setAddressRow3($addressRow3);
}
/**
* {@inheritDoc}
*/
public function setAddressRow4(?string $addressRow4)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAddressRow4', [$addressRow4]);
return parent::setAddressRow4($addressRow4);
}
/**
* {@inheritDoc}
*/
public function setCity(?string $city)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCity', [$city]);
return parent::setCity($city);
}
/**
* {@inheritDoc}
*/
public function setContactPersonEmail(?string $contactPersonEmail)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setContactPersonEmail', [$contactPersonEmail]);
return parent::setContactPersonEmail($contactPersonEmail);
}
/**
* {@inheritDoc}
*/
public function setContactPersonName(?string $contactPersonName)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setContactPersonName', [$contactPersonName]);
return parent::setContactPersonName($contactPersonName);
}
/**
* {@inheritDoc}
*/
public function setCountry(?string $country)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCountry', [$country]);
return parent::setCountry($country);
}
/**
* {@inheritDoc}
*/
public function setName(string $name)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
return parent::setName($name);
}
/**
* {@inheritDoc}
*/
public function setPostalCode(?string $postalCode)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPostalCode', [$postalCode]);
return parent::setPostalCode($postalCode);
}
/**
* {@inheritDoc}
*/
public function setVatId(?string $vatId)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setVatId', [$vatId]);
return parent::setVatId($vatId);
}
/**
* {@inheritDoc}
*/
public function getTermsOfDelivery(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTermsOfDelivery', []);
return parent::getTermsOfDelivery();
}
/**
* {@inheritDoc}
*/
public function getTermsOfDeliveryForDocument(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTermsOfDeliveryForDocument', []);
return parent::getTermsOfDeliveryForDocument();
}
/**
* {@inheritDoc}
*/
public function getTermsOfDeliveryRules(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTermsOfDeliveryRules', []);
return parent::getTermsOfDeliveryRules();
}
/**
* {@inheritDoc}
*/
public function getTransportation(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTransportation', []);
return parent::getTransportation();
}
/**
* {@inheritDoc}
*/
public function setTermsOfDelivery(?string $termsOfDelivery)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setTermsOfDelivery', [$termsOfDelivery]);
return parent::setTermsOfDelivery($termsOfDelivery);
}
/**
* {@inheritDoc}
*/
public function setTermsOfDeliveryRules(?string $termsOfDeliveryRules)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setTermsOfDeliveryRules', [$termsOfDeliveryRules]);
return parent::setTermsOfDeliveryRules($termsOfDeliveryRules);
}
/**
* {@inheritDoc}
*/
public function setTransportation(?string $transportation)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setTransportation', [$transportation]);
return parent::setTransportation($transportation);
}
}