<?php
namespace Proxies\__CG__\App\Entity\Payment;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class PaymentMethod extends \App\Entity\Payment\PaymentMethod 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__', 'codeGenerix', 'codePanda', 'enabledOnlyForAdmin', 'images', 'channels', 'gatewayConfig', 'id', 'code', 'environment', 'position', 'createdAt', 'updatedAt', 'enabled', 'translations', 'translationsCache', 'currentLocale', 'currentTranslation', 'fallbackLocale'];
}
return ['__isInitialized__', 'codeGenerix', 'codePanda', 'enabledOnlyForAdmin', 'images', 'channels', 'gatewayConfig', 'id', 'code', 'environment', 'position', 'createdAt', 'updatedAt', 'enabled', 'translations', 'translationsCache', 'currentLocale', 'currentTranslation', 'fallbackLocale'];
}
/**
*
*/
public function __wakeup()
{
if ( ! $this->__isInitialized__) {
$this->__initializer__ = function (PaymentMethod $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 getCodeGenerix()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCodeGenerix', []);
return parent::getCodeGenerix();
}
/**
* {@inheritDoc}
*/
public function setCodeGenerix(?string $codeGenerix): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCodeGenerix', [$codeGenerix]);
parent::setCodeGenerix($codeGenerix);
}
/**
* {@inheritDoc}
*/
public function getCodePanda()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCodePanda', []);
return parent::getCodePanda();
}
/**
* {@inheritDoc}
*/
public function setCodePanda(?string $codePanda): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCodePanda', [$codePanda]);
parent::setCodePanda($codePanda);
}
/**
* {@inheritDoc}
*/
public function getEnabledOnlyForAdmin()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getEnabledOnlyForAdmin', []);
return parent::getEnabledOnlyForAdmin();
}
/**
* {@inheritDoc}
*/
public function setEnabledOnlyForAdmin(?bool $enabledOnlyForAdmin): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setEnabledOnlyForAdmin', [$enabledOnlyForAdmin]);
parent::setEnabledOnlyForAdmin($enabledOnlyForAdmin);
}
/**
* {@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 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 setGatewayConfig(?\Payum\Core\Model\GatewayConfigInterface $gateway): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setGatewayConfig', [$gateway]);
parent::setGatewayConfig($gateway);
}
/**
* {@inheritDoc}
*/
public function getGatewayConfig(): ?\Payum\Core\Model\GatewayConfigInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getGatewayConfig', []);
return parent::getGatewayConfig();
}
/**
* {@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 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 getInstructions(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getInstructions', []);
return parent::getInstructions();
}
/**
* {@inheritDoc}
*/
public function setInstructions(?string $instructions): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setInstructions', [$instructions]);
parent::setInstructions($instructions);
}
/**
* {@inheritDoc}
*/
public function getEnvironment(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getEnvironment', []);
return parent::getEnvironment();
}
/**
* {@inheritDoc}
*/
public function setEnvironment(?string $environment): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setEnvironment', [$environment]);
parent::setEnvironment($environment);
}
/**
* {@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 getTranslation(string $locale = NULL): \Sylius\Component\Resource\Model\TranslationInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTranslation', [$locale]);
return parent::getTranslation($locale);
}
/**
* {@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 initializeTranslationsCollection()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'initializeTranslationsCollection', []);
return parent::initializeTranslationsCollection();
}
/**
* {@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);
}
}