var/cache/dev/ContainerGtrce9r/CartService_9dde17f.php line 120

Open in your IDE?
  1. <?php
  2. class CartService_9dde17f extends \Eccube\Service\CartService implements \ProxyManager\Proxy\VirtualProxyInterface
  3. {
  4.     /**
  5.      * @var \Closure|null initializer responsible for generating the wrapped object
  6.      */
  7.     private $valueHolder9dde17f null;
  8.     /**
  9.      * @var \Closure|null initializer responsible for generating the wrapped object
  10.      */
  11.     private $initializer9dde17f null;
  12.     /**
  13.      * @var bool[] map of public properties of the parent class
  14.      */
  15.     private static $publicProperties9dde17f = [
  16.         
  17.     ];
  18.     /**
  19.      * {@inheritDoc}
  20.      */
  21.     public function getCarts($empty_delete false)
  22.     {
  23.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'getCarts', array('empty_delete' => $empty_delete), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  24.         return $this->valueHolder9dde17f->getCarts($empty_delete);
  25.     }
  26.     /**
  27.      * {@inheritDoc}
  28.      */
  29.     public function getPersistedCarts()
  30.     {
  31.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'getPersistedCarts', array(), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  32.         return $this->valueHolder9dde17f->getPersistedCarts();
  33.     }
  34.     /**
  35.      * {@inheritDoc}
  36.      */
  37.     public function getSessionCarts()
  38.     {
  39.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'getSessionCarts', array(), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  40.         return $this->valueHolder9dde17f->getSessionCarts();
  41.     }
  42.     /**
  43.      * {@inheritDoc}
  44.      */
  45.     public function mergeFromPersistedCart()
  46.     {
  47.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'mergeFromPersistedCart', array(), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  48.         return $this->valueHolder9dde17f->mergeFromPersistedCart();
  49.     }
  50.     /**
  51.      * {@inheritDoc}
  52.      */
  53.     public function getCart()
  54.     {
  55.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'getCart', array(), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  56.         return $this->valueHolder9dde17f->getCart();
  57.     }
  58.     /**
  59.      * {@inheritDoc}
  60.      */
  61.     public function addProduct($ProductClass$quantity 1)
  62.     {
  63.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'addProduct', array('ProductClass' => $ProductClass'quantity' => $quantity), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  64.         return $this->valueHolder9dde17f->addProduct($ProductClass$quantity);
  65.     }
  66.     /**
  67.      * {@inheritDoc}
  68.      */
  69.     public function removeProduct($ProductClass)
  70.     {
  71.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'removeProduct', array('ProductClass' => $ProductClass), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  72.         return $this->valueHolder9dde17f->removeProduct($ProductClass);
  73.     }
  74.     /**
  75.      * {@inheritDoc}
  76.      */
  77.     public function save()
  78.     {
  79.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'save', array(), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  80.         return $this->valueHolder9dde17f->save();
  81.     }
  82.     /**
  83.      * {@inheritDoc}
  84.      */
  85.     public function setPreOrderId($pre_order_id)
  86.     {
  87.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'setPreOrderId', array('pre_order_id' => $pre_order_id), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  88.         return $this->valueHolder9dde17f->setPreOrderId($pre_order_id);
  89.     }
  90.     /**
  91.      * {@inheritDoc}
  92.      */
  93.     public function getPreOrderId()
  94.     {
  95.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'getPreOrderId', array(), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  96.         return $this->valueHolder9dde17f->getPreOrderId();
  97.     }
  98.     /**
  99.      * {@inheritDoc}
  100.      */
  101.     public function clear()
  102.     {
  103.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'clear', array(), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  104.         return $this->valueHolder9dde17f->clear();
  105.     }
  106.     /**
  107.      * {@inheritDoc}
  108.      */
  109.     public function setCartItemComparator($cartItemComparator)
  110.     {
  111.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'setCartItemComparator', array('cartItemComparator' => $cartItemComparator), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  112.         return $this->valueHolder9dde17f->setCartItemComparator($cartItemComparator);
  113.     }
  114.     /**
  115.      * {@inheritDoc}
  116.      */
  117.     public function setPrimary($cartKey)
  118.     {
  119.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'setPrimary', array('cartKey' => $cartKey), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  120.         return $this->valueHolder9dde17f->setPrimary($cartKey);
  121.     }
  122.     /**
  123.      * Constructor for lazy initialization
  124.      *
  125.      * @param \Closure|null $initializer
  126.      */
  127.     public static function staticProxyConstructor($initializer)
  128.     {
  129.         static $reflection;
  130.         $reflection $reflection ?: $reflection = new \ReflectionClass(__CLASS__);
  131.         $instance = (new \ReflectionClass(get_class()))->newInstanceWithoutConstructor();
  132.         unset($instance->carts$instance->session$instance->entityManager$instance->cart$instance->productClassRepository$instance->cartRepository$instance->cartItemComparator$instance->cartItemAllocator$instance->orderRepository$instance->tokenStorage$instance->authorizationChecker);
  133.         $instance->initializer9dde17f $initializer;
  134.         return $instance;
  135.     }
  136.     /**
  137.      * {@inheritDoc}
  138.      */
  139.     public function __construct(\Symfony\Component\HttpFoundation\Session\SessionInterface $session, \Doctrine\ORM\EntityManagerInterface $entityManager, \Eccube\Repository\ProductClassRepository $productClassRepository, \Eccube\Repository\CartRepository $cartRepository, \Eccube\Service\Cart\CartItemComparator $cartItemComparator, \Eccube\Service\Cart\CartItemAllocator $cartItemAllocator, \Eccube\Repository\OrderRepository $orderRepository, \Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, \Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker)
  140.     {
  141.         static $reflection;
  142.         if (! $this->valueHolder9dde17f) {
  143.             $reflection $reflection ?: new \ReflectionClass('Eccube\\Service\\CartService');
  144.             $this->valueHolder9dde17f $reflection->newInstanceWithoutConstructor();
  145.         unset($this->carts$this->session$this->entityManager$this->cart$this->productClassRepository$this->cartRepository$this->cartItemComparator$this->cartItemAllocator$this->orderRepository$this->tokenStorage$this->authorizationChecker);
  146.         }
  147.         $this->valueHolder9dde17f->__construct($session$entityManager$productClassRepository$cartRepository$cartItemComparator$cartItemAllocator$orderRepository$tokenStorage$authorizationChecker);
  148.     }
  149.     /**
  150.      * @param string $name
  151.      */
  152.     public function & __get($name)
  153.     {
  154.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'__get', ['name' => $name], $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  155.         if (isset(self::$publicProperties9dde17f[$name])) {
  156.             return $this->valueHolder9dde17f->$name;
  157.         }
  158.         $realInstanceReflection = new \ReflectionClass(get_parent_class($this));
  159.         if (! $realInstanceReflection->hasProperty($name)) {
  160.             $targetObject $this->valueHolder9dde17f;
  161.             $backtrace debug_backtrace(false);
  162.             trigger_error(
  163.                 sprintf(
  164.                     'Undefined property: %s::$%s in %s on line %s',
  165.                     get_parent_class($this),
  166.                     $name,
  167.                     $backtrace[0]['file'],
  168.                     $backtrace[0]['line']
  169.                 ),
  170.                 \E_USER_NOTICE
  171.             );
  172.             return $targetObject->$name;
  173.             return;
  174.         }
  175.         $targetObject $this->valueHolder9dde17f;
  176.         $accessor = function & () use ($targetObject$name) {
  177.             return $targetObject->$name;
  178.         };
  179.         $backtrace debug_backtrace(true);
  180.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  181.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  182.         $returnValue = & $accessor();
  183.         return $returnValue;
  184.     }
  185.     /**
  186.      * @param string $name
  187.      * @param mixed $value
  188.      */
  189.     public function __set($name$value)
  190.     {
  191.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'__set', array('name' => $name'value' => $value), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  192.         $realInstanceReflection = new \ReflectionClass(get_parent_class($this));
  193.         if (! $realInstanceReflection->hasProperty($name)) {
  194.             $targetObject $this->valueHolder9dde17f;
  195.             return $targetObject->$name $value;
  196.             return;
  197.         }
  198.         $targetObject $this->valueHolder9dde17f;
  199.         $accessor = function & () use ($targetObject$name$value) {
  200.             return $targetObject->$name $value;
  201.         };
  202.         $backtrace debug_backtrace(true);
  203.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  204.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  205.         $returnValue = & $accessor();
  206.         return $returnValue;
  207.     }
  208.     /**
  209.      * @param string $name
  210.      */
  211.     public function __isset($name)
  212.     {
  213.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'__isset', array('name' => $name), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  214.         $realInstanceReflection = new \ReflectionClass(get_parent_class($this));
  215.         if (! $realInstanceReflection->hasProperty($name)) {
  216.             $targetObject $this->valueHolder9dde17f;
  217.             return isset($targetObject->$name);
  218.             return;
  219.         }
  220.         $targetObject $this->valueHolder9dde17f;
  221.         $accessor = function () use ($targetObject$name) {
  222.             return isset($targetObject->$name);
  223.         };
  224.         $backtrace debug_backtrace(true);
  225.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  226.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  227.         $returnValue $accessor();
  228.         return $returnValue;
  229.     }
  230.     /**
  231.      * @param string $name
  232.      */
  233.     public function __unset($name)
  234.     {
  235.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'__unset', array('name' => $name), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  236.         $realInstanceReflection = new \ReflectionClass(get_parent_class($this));
  237.         if (! $realInstanceReflection->hasProperty($name)) {
  238.             $targetObject $this->valueHolder9dde17f;
  239.             unset($targetObject->$name);
  240.             return;
  241.         }
  242.         $targetObject $this->valueHolder9dde17f;
  243.         $accessor = function () use ($targetObject$name) {
  244.             unset($targetObject->$name);
  245.         };
  246.         $backtrace debug_backtrace(true);
  247.         $scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
  248.         $accessor $accessor->bindTo($scopeObjectget_class($scopeObject));
  249.         $returnValue $accessor();
  250.         return $returnValue;
  251.     }
  252.     public function __clone()
  253.     {
  254.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'__clone', array(), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  255.         $this->valueHolder9dde17f = clone $this->valueHolder9dde17f;
  256.     }
  257.     public function __sleep()
  258.     {
  259.         $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'__sleep', array(), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  260.         return array('valueHolder9dde17f');
  261.     }
  262.     public function __wakeup()
  263.     {
  264.         unset($this->carts$this->session$this->entityManager$this->cart$this->productClassRepository$this->cartRepository$this->cartItemComparator$this->cartItemAllocator$this->orderRepository$this->tokenStorage$this->authorizationChecker);
  265.     }
  266.     /**
  267.      * {@inheritDoc}
  268.      */
  269.     public function setProxyInitializer(\Closure $initializer null)
  270.     {
  271.         $this->initializer9dde17f $initializer;
  272.     }
  273.     /**
  274.      * {@inheritDoc}
  275.      */
  276.     public function getProxyInitializer()
  277.     {
  278.         return $this->initializer9dde17f;
  279.     }
  280.     /**
  281.      * {@inheritDoc}
  282.      */
  283.     public function initializeProxy() : bool
  284.     {
  285.         return $this->initializer9dde17f && ($this->initializer9dde17f->__invoke($valueHolder9dde17f$this'initializeProxy', array(), $this->initializer9dde17f) || 1) && $this->valueHolder9dde17f $valueHolder9dde17f;
  286.     }
  287.     /**
  288.      * {@inheritDoc}
  289.      */
  290.     public function isProxyInitialized() : bool
  291.     {
  292.         return null !== $this->valueHolder9dde17f;
  293.     }
  294.     /**
  295.      * {@inheritDoc}
  296.      */
  297.     public function getWrappedValueHolderValue()
  298.     {
  299.         return $this->valueHolder9dde17f;
  300.     }
  301. }