<?php
namespace Proxies\__CG__\App\Entity\Shipping;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class ShippingMethod extends \App\Entity\Shipping\ShippingMethod 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__', 'images', 'minDelayDays', 'maxDelayDays', 'deliveryOnSaturday', 'pickup', 'subtemplate', 'zone', 'taxCategory', 'channels', 'id', 'code', 'position', 'category', 'categoryRequirement', 'calculator', 'configuration', 'rules', 'archivedAt', 'createdAt', 'updatedAt', 'enabled', 'translations', 'translationsCache', 'currentLocale', 'currentTranslation', 'fallbackLocale'];
}
return ['__isInitialized__', 'images', 'minDelayDays', 'maxDelayDays', 'deliveryOnSaturday', 'pickup', 'subtemplate', 'zone', 'taxCategory', 'channels', 'id', 'code', 'position', 'category', 'categoryRequirement', 'calculator', 'configuration', 'rules', 'archivedAt', 'createdAt', 'updatedAt', 'enabled', 'translations', 'translationsCache', 'currentLocale', 'currentTranslation', 'fallbackLocale'];
}
/**
*
*/
public function __wakeup()
{
if ( ! $this->__isInitialized__) {
$this->__initializer__ = function (ShippingMethod $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 getImages(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getImages', []);
return parent::getImages();
}
/**
* {@inheritDoc}
*/
public function getImagesByType(string $type): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getImagesByType', [$type]);
return parent::getImagesByType($type);
}
/**
* {@inheritDoc}
*/
public function hasImages(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasImages', []);
return parent::hasImages();
}
/**
* {@inheritDoc}
*/
public function hasImage(\Sylius\Component\Core\Model\ImageInterface $image): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasImage', [$image]);
return parent::hasImage($image);
}
/**
* {@inheritDoc}
*/
public function addImage(\Sylius\Component\Core\Model\ImageInterface $image): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addImage', [$image]);
parent::addImage($image);
}
/**
* {@inheritDoc}
*/
public function removeImage(\Sylius\Component\Core\Model\ImageInterface $image): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeImage', [$image]);
parent::removeImage($image);
}
/**
* {@inheritDoc}
*/
public function setMinDelayDays($minDelayDays)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setMinDelayDays', [$minDelayDays]);
return parent::setMinDelayDays($minDelayDays);
}
/**
* {@inheritDoc}
*/
public function getMinDelayDays()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getMinDelayDays', []);
return parent::getMinDelayDays();
}
/**
* {@inheritDoc}
*/
public function setMaxDelayDays($maxDelayDays)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setMaxDelayDays', [$maxDelayDays]);
return parent::setMaxDelayDays($maxDelayDays);
}
/**
* {@inheritDoc}
*/
public function getMaxDelayDays()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getMaxDelayDays', []);
return parent::getMaxDelayDays();
}
/**
* {@inheritDoc}
*/
public function setDeliveryOnSaturday($deliveryOnSaturday)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDeliveryOnSaturday', [$deliveryOnSaturday]);
return parent::setDeliveryOnSaturday($deliveryOnSaturday);
}
/**
* {@inheritDoc}
*/
public function getDeliveryOnSaturday()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDeliveryOnSaturday', []);
return parent::getDeliveryOnSaturday();
}
/**
* {@inheritDoc}
*/
public function getPickup()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPickup', []);
return parent::getPickup();
}
/**
* {@inheritDoc}
*/
public function setPickup($pickup)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPickup', [$pickup]);
return parent::setPickup($pickup);
}
/**
* {@inheritDoc}
*/
public function getSubtemplate()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSubtemplate', []);
return parent::getSubtemplate();
}
/**
* {@inheritDoc}
*/
public function setSubtemplate($subtemplate)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSubtemplate', [$subtemplate]);
return parent::setSubtemplate($subtemplate);
}
/**
* {@inheritDoc}
*/
public function getZone(): ?\Sylius\Component\Addressing\Model\ZoneInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getZone', []);
return parent::getZone();
}
/**
* {@inheritDoc}
*/
public function setZone(?\Sylius\Component\Addressing\Model\ZoneInterface $zone): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setZone', [$zone]);
parent::setZone($zone);
}
/**
* {@inheritDoc}
*/
public function getTaxCategory(): ?\Sylius\Component\Taxation\Model\TaxCategoryInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTaxCategory', []);
return parent::getTaxCategory();
}
/**
* {@inheritDoc}
*/
public function setTaxCategory(?\Sylius\Component\Taxation\Model\TaxCategoryInterface $category): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setTaxCategory', [$category]);
parent::setTaxCategory($category);
}
/**
* {@inheritDoc}
*/
public function getChannels(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getChannels', []);
return parent::getChannels();
}
/**
* {@inheritDoc}
*/
public function hasChannel(\Sylius\Component\Channel\Model\ChannelInterface $channel): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasChannel', [$channel]);
return parent::hasChannel($channel);
}
/**
* {@inheritDoc}
*/
public function addChannel(\Sylius\Component\Channel\Model\ChannelInterface $channel): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addChannel', [$channel]);
parent::addChannel($channel);
}
/**
* {@inheritDoc}
*/
public function removeChannel(\Sylius\Component\Channel\Model\ChannelInterface $channel): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeChannel', [$channel]);
parent::removeChannel($channel);
}
/**
* {@inheritDoc}
*/
public function __toString(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', []);
return parent::__toString();
}
/**
* {@inheritDoc}
*/
public function getId()
{
if ($this->__isInitialized__ === false) {
return (int) parent::getId();
}
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
return parent::getId();
}
/**
* {@inheritDoc}
*/
public function getCode(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCode', []);
return parent::getCode();
}
/**
* {@inheritDoc}
*/
public function setCode(?string $code): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCode', [$code]);
parent::setCode($code);
}
/**
* {@inheritDoc}
*/
public function getPosition(): ?int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPosition', []);
return parent::getPosition();
}
/**
* {@inheritDoc}
*/
public function setPosition(?int $position): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPosition', [$position]);
parent::setPosition($position);
}
/**
* {@inheritDoc}
*/
public function getCategory(): ?\Sylius\Component\Shipping\Model\ShippingCategoryInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCategory', []);
return parent::getCategory();
}
/**
* {@inheritDoc}
*/
public function setCategory(?\Sylius\Component\Shipping\Model\ShippingCategoryInterface $category): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCategory', [$category]);
parent::setCategory($category);
}
/**
* {@inheritDoc}
*/
public function getCategoryRequirement(): ?int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCategoryRequirement', []);
return parent::getCategoryRequirement();
}
/**
* {@inheritDoc}
*/
public function setCategoryRequirement(?int $categoryRequirement): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCategoryRequirement', [$categoryRequirement]);
parent::setCategoryRequirement($categoryRequirement);
}
/**
* {@inheritDoc}
*/
public function getName(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
return parent::getName();
}
/**
* {@inheritDoc}
*/
public function setName(?string $name): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
parent::setName($name);
}
/**
* {@inheritDoc}
*/
public function getDescription(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDescription', []);
return parent::getDescription();
}
/**
* {@inheritDoc}
*/
public function setDescription(?string $description): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDescription', [$description]);
parent::setDescription($description);
}
/**
* {@inheritDoc}
*/
public function getCalculator(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCalculator', []);
return parent::getCalculator();
}
/**
* {@inheritDoc}
*/
public function setCalculator(?string $calculator): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCalculator', [$calculator]);
parent::setCalculator($calculator);
}
/**
* {@inheritDoc}
*/
public function getConfiguration(): array
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getConfiguration', []);
return parent::getConfiguration();
}
/**
* {@inheritDoc}
*/
public function setConfiguration(array $configuration): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setConfiguration', [$configuration]);
parent::setConfiguration($configuration);
}
/**
* {@inheritDoc}
*/
public function getRules(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRules', []);
return parent::getRules();
}
/**
* {@inheritDoc}
*/
public function hasRules(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasRules', []);
return parent::hasRules();
}
/**
* {@inheritDoc}
*/
public function hasRule(\Sylius\Component\Shipping\Model\ShippingMethodRuleInterface $rule): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasRule', [$rule]);
return parent::hasRule($rule);
}
/**
* {@inheritDoc}
*/
public function addRule(\Sylius\Component\Shipping\Model\ShippingMethodRuleInterface $rule): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addRule', [$rule]);
parent::addRule($rule);
}
/**
* {@inheritDoc}
*/
public function removeRule(\Sylius\Component\Shipping\Model\ShippingMethodRuleInterface $rule): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeRule', [$rule]);
parent::removeRule($rule);
}
/**
* {@inheritDoc}
*/
public function getTranslation(string $locale = NULL): \Sylius\Component\Resource\Model\TranslationInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTranslation', [$locale]);
return parent::getTranslation($locale);
}
/**
* {@inheritDoc}
*/
public function getArchivedAt(): ?\DateTimeInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getArchivedAt', []);
return parent::getArchivedAt();
}
/**
* {@inheritDoc}
*/
public function setArchivedAt(?\DateTimeInterface $archivedAt): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setArchivedAt', [$archivedAt]);
parent::setArchivedAt($archivedAt);
}
/**
* {@inheritDoc}
*/
public function getCreatedAt(): ?\DateTimeInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedAt', []);
return parent::getCreatedAt();
}
/**
* {@inheritDoc}
*/
public function setCreatedAt(?\DateTimeInterface $createdAt): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', [$createdAt]);
parent::setCreatedAt($createdAt);
}
/**
* {@inheritDoc}
*/
public function getUpdatedAt(): ?\DateTimeInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedAt', []);
return parent::getUpdatedAt();
}
/**
* {@inheritDoc}
*/
public function setUpdatedAt(?\DateTimeInterface $updatedAt): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedAt', [$updatedAt]);
parent::setUpdatedAt($updatedAt);
}
/**
* {@inheritDoc}
*/
public function isEnabled(): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isEnabled', []);
return parent::isEnabled();
}
/**
* {@inheritDoc}
*/
public function setEnabled(?bool $enabled): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setEnabled', [$enabled]);
parent::setEnabled($enabled);
}
/**
* {@inheritDoc}
*/
public function enable(): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'enable', []);
parent::enable();
}
/**
* {@inheritDoc}
*/
public function disable(): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'disable', []);
parent::disable();
}
/**
* {@inheritDoc}
*/
public function getTranslations(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTranslations', []);
return parent::getTranslations();
}
/**
* {@inheritDoc}
*/
public function hasTranslation(\Sylius\Component\Resource\Model\TranslationInterface $translation): bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasTranslation', [$translation]);
return parent::hasTranslation($translation);
}
/**
* {@inheritDoc}
*/
public function addTranslation(\Sylius\Component\Resource\Model\TranslationInterface $translation): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addTranslation', [$translation]);
parent::addTranslation($translation);
}
/**
* {@inheritDoc}
*/
public function removeTranslation(\Sylius\Component\Resource\Model\TranslationInterface $translation): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeTranslation', [$translation]);
parent::removeTranslation($translation);
}
/**
* {@inheritDoc}
*/
public function setCurrentLocale(string $currentLocale): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCurrentLocale', [$currentLocale]);
parent::setCurrentLocale($currentLocale);
}
/**
* {@inheritDoc}
*/
public function setFallbackLocale(string $fallbackLocale): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setFallbackLocale', [$fallbackLocale]);
parent::setFallbackLocale($fallbackLocale);
}
}