var/cache/dev/ContainerXnu6Fia/DefaultCustomerProvider_35d6835.php line 49

Open in your IDE?
  1. <?php
  2. namespace ContainerXnu6Fia;
  3. include_once \dirname(__DIR__, 4).'/vendor/pimcore/customer-management-framework-bundle/src/CustomerProvider/CustomerProviderInterface.php';
  4. include_once \dirname(__DIR__, 4).'/vendor/pimcore/customer-management-framework-bundle/src/CustomerProvider/DefaultCustomerProvider.php';
  5. class DefaultCustomerProvider_35d6835 extends \CustomerManagementFrameworkBundle\CustomerProvider\DefaultCustomerProvider implements \ProxyManager\Proxy\VirtualProxyInterface
  6. {
  7.     /**
  8.      * @var \CustomerManagementFrameworkBundle\CustomerProvider\DefaultCustomerProvider|null wrapped object, if the proxy is initialized
  9.      */
  10.     private $valueHolderfc2ec = null;
  11.     /**
  12.      * @var \Closure|null initializer responsible for generating the wrapped object
  13.      */
  14.     private $initializerd1764 = null;
  15.     /**
  16.      * @var bool[] map of public properties of the parent class
  17.      */
  18.     private static $publicProperties1c6cb = [
  19.         
  20.     ];
  21.     public function getCustomerClassId()
  22.     {
  23.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'getCustomerClassId', array(), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  24.         return $this->valueHolderfc2ec->getCustomerClassId();
  25.     }
  26.     public function getCustomerClassName()
  27.     {
  28.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'getCustomerClassName', array(), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  29.         return $this->valueHolderfc2ec->getCustomerClassName();
  30.     }
  31.     public function getList()
  32.     {
  33.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'getList', array(), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  34.         return $this->valueHolderfc2ec->getList();
  35.     }
  36.     public function create(array $data = [])
  37.     {
  38.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'create', array('data' => $data), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  39.         return $this->valueHolderfc2ec->create($data);
  40.     }
  41.     public function createCustomerInstance()
  42.     {
  43.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'createCustomerInstance', array(), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  44.         return $this->valueHolderfc2ec->createCustomerInstance();
  45.     }
  46.     public function update(\CustomerManagementFrameworkBundle\Model\CustomerInterface $customer, array $data = [])
  47.     {
  48.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'update', array('customer' => $customer, 'data' => $data), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  49.         return $this->valueHolderfc2ec->update($customer, $data);
  50.     }
  51.     public function delete(\CustomerManagementFrameworkBundle\Model\CustomerInterface $customer)
  52.     {
  53.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'delete', array('customer' => $customer), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  54.         return $this->valueHolderfc2ec->delete($customer);
  55.     }
  56.     public function getById($id, $force = false)
  57.     {
  58.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'getById', array('id' => $id, 'force' => $force), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  59.         return $this->valueHolderfc2ec->getById($id, $force);
  60.     }
  61.     public function getActiveCustomerByEmail($email)
  62.     {
  63.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'getActiveCustomerByEmail', array('email' => $email), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  64.         return $this->valueHolderfc2ec->getActiveCustomerByEmail($email);
  65.     }
  66.     public function applyObjectNamingScheme(\CustomerManagementFrameworkBundle\Model\CustomerInterface $customer)
  67.     {
  68.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'applyObjectNamingScheme', array('customer' => $customer), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  69.         return $this->valueHolderfc2ec->applyObjectNamingScheme($customer);
  70.     }
  71.     public function getParentPath()
  72.     {
  73.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'getParentPath', array(), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  74.         return $this->valueHolderfc2ec->getParentPath();
  75.     }
  76.     public function getParentParentPath()
  77.     {
  78.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'getParentParentPath', array(), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  79.         return $this->valueHolderfc2ec->getParentParentPath();
  80.     }
  81.     public function setParentPath($parentPath)
  82.     {
  83.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'setParentPath', array('parentPath' => $parentPath), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  84.         return $this->valueHolderfc2ec->setParentPath($parentPath);
  85.     }
  86.     public function addActiveCondition($list)
  87.     {
  88.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'addActiveCondition', array('list' => $list), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  89.         return $this->valueHolderfc2ec->addActiveCondition($list);
  90.     }
  91.     public function addInActiveCondition($list)
  92.     {
  93.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'addInActiveCondition', array('list' => $list), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  94.         return $this->valueHolderfc2ec->addInActiveCondition($list);
  95.     }
  96.     /**
  97.      * Constructor for lazy initialization
  98.      *
  99.      * @param \Closure|null $initializer
  100.      */
  101.     public static function staticProxyConstructor($initializer)
  102.     {
  103.         static $reflection;
  104.         $reflection = $reflection ?? new \ReflectionClass(__CLASS__);
  105.         $instance   = $reflection->newInstanceWithoutConstructor();
  106.         unset($instance->pimcoreClass, $instance->parentPath, $instance->namingScheme, $instance->modelFactory, $instance->usesClassOverride, $instance->classNameWithoutNamespace);
  107.         $instance->initializerd1764 = $initializer;
  108.         return $instance;
  109.     }
  110.     public function __construct($pimcoreClass, $parentPath, \CustomerManagementFrameworkBundle\CustomerProvider\ObjectNamingScheme\ObjectNamingSchemeInterface $namingScheme, \Pimcore\Model\Factory $modelFactory)
  111.     {
  112.         static $reflection;
  113.         if (! $this->valueHolderfc2ec) {
  114.             $reflection = $reflection ?? new \ReflectionClass('CustomerManagementFrameworkBundle\\CustomerProvider\\DefaultCustomerProvider');
  115.             $this->valueHolderfc2ec = $reflection->newInstanceWithoutConstructor();
  116.         unset($this->pimcoreClass, $this->parentPath, $this->namingScheme, $this->modelFactory, $this->usesClassOverride, $this->classNameWithoutNamespace);
  117.         }
  118.         $this->valueHolderfc2ec->__construct($pimcoreClass, $parentPath, $namingScheme, $modelFactory);
  119.     }
  120.     public function & __get($name)
  121.     {
  122.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, '__get', ['name' => $name], $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  123.         if (isset(self::$publicProperties1c6cb[$name])) {
  124.             return $this->valueHolderfc2ec->$name;
  125.         }
  126.         $realInstanceReflection = new \ReflectionClass('CustomerManagementFrameworkBundle\\CustomerProvider\\DefaultCustomerProvider');
  127.         if (! $realInstanceReflection->hasProperty($name)) {
  128.             $targetObject = $this->valueHolderfc2ec;
  129.             $backtrace = debug_backtrace(false, 1);
  130.             trigger_error(
  131.                 sprintf(
  132.                     'Undefined property: %s::$%s in %s on line %s',
  133.                     $realInstanceReflection->getName(),
  134.                     $name,
  135.                     $backtrace[0]['file'],
  136.                     $backtrace[0]['line']
  137.                 ),
  138.                 \E_USER_NOTICE
  139.             );
  140.             return $targetObject->$name;
  141.         }
  142.         $targetObject = $this->valueHolderfc2ec;
  143.         $accessor = function & () use ($targetObject, $name) {
  144.             return $targetObject->$name;
  145.         };
  146.         $backtrace = debug_backtrace(true, 2);
  147.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  148.         $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  149.         $returnValue = & $accessor();
  150.         return $returnValue;
  151.     }
  152.     public function __set($name, $value)
  153.     {
  154.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, '__set', array('name' => $name, 'value' => $value), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  155.         $realInstanceReflection = new \ReflectionClass('CustomerManagementFrameworkBundle\\CustomerProvider\\DefaultCustomerProvider');
  156.         if (! $realInstanceReflection->hasProperty($name)) {
  157.             $targetObject = $this->valueHolderfc2ec;
  158.             $targetObject->$name = $value;
  159.             return $targetObject->$name;
  160.         }
  161.         $targetObject = $this->valueHolderfc2ec;
  162.         $accessor = function & () use ($targetObject, $name, $value) {
  163.             $targetObject->$name = $value;
  164.             return $targetObject->$name;
  165.         };
  166.         $backtrace = debug_backtrace(true, 2);
  167.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  168.         $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  169.         $returnValue = & $accessor();
  170.         return $returnValue;
  171.     }
  172.     public function __isset($name)
  173.     {
  174.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, '__isset', array('name' => $name), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  175.         $realInstanceReflection = new \ReflectionClass('CustomerManagementFrameworkBundle\\CustomerProvider\\DefaultCustomerProvider');
  176.         if (! $realInstanceReflection->hasProperty($name)) {
  177.             $targetObject = $this->valueHolderfc2ec;
  178.             return isset($targetObject->$name);
  179.         }
  180.         $targetObject = $this->valueHolderfc2ec;
  181.         $accessor = function () use ($targetObject, $name) {
  182.             return isset($targetObject->$name);
  183.         };
  184.         $backtrace = debug_backtrace(true, 2);
  185.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  186.         $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  187.         $returnValue = $accessor();
  188.         return $returnValue;
  189.     }
  190.     public function __unset($name)
  191.     {
  192.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, '__unset', array('name' => $name), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  193.         $realInstanceReflection = new \ReflectionClass('CustomerManagementFrameworkBundle\\CustomerProvider\\DefaultCustomerProvider');
  194.         if (! $realInstanceReflection->hasProperty($name)) {
  195.             $targetObject = $this->valueHolderfc2ec;
  196.             unset($targetObject->$name);
  197.             return;
  198.         }
  199.         $targetObject = $this->valueHolderfc2ec;
  200.         $accessor = function () use ($targetObject, $name) {
  201.             unset($targetObject->$name);
  202.             return;
  203.         };
  204.         $backtrace = debug_backtrace(true, 2);
  205.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  206.         $accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
  207.         $accessor();
  208.     }
  209.     public function __clone()
  210.     {
  211.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, '__clone', array(), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  212.         $this->valueHolderfc2ec = clone $this->valueHolderfc2ec;
  213.     }
  214.     public function __sleep()
  215.     {
  216.         $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, '__sleep', array(), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  217.         return array('valueHolderfc2ec');
  218.     }
  219.     public function __wakeup()
  220.     {
  221.         unset($this->pimcoreClass, $this->parentPath, $this->namingScheme, $this->modelFactory, $this->usesClassOverride, $this->classNameWithoutNamespace);
  222.     }
  223.     public function setProxyInitializer(\Closure $initializer = null) : void
  224.     {
  225.         $this->initializerd1764 = $initializer;
  226.     }
  227.     public function getProxyInitializer() : ?\Closure
  228.     {
  229.         return $this->initializerd1764;
  230.     }
  231.     public function initializeProxy() : bool
  232.     {
  233.         return $this->initializerd1764 && ($this->initializerd1764->__invoke($valueHolderfc2ec, $this, 'initializeProxy', array(), $this->initializerd1764) || 1) && $this->valueHolderfc2ec = $valueHolderfc2ec;
  234.     }
  235.     public function isProxyInitialized() : bool
  236.     {
  237.         return null !== $this->valueHolderfc2ec;
  238.     }
  239.     public function getWrappedValueHolderValue()
  240.     {
  241.         return $this->valueHolderfc2ec;
  242.     }
  243. }
  244. if (!\class_exists('DefaultCustomerProvider_35d6835', false)) {
  245.     \class_alias(__NAMESPACE__.'\\DefaultCustomerProvider_35d6835', 'DefaultCustomerProvider_35d6835', false);
  246. }