<?php
namespace ContainerXbYmIBs;
include_once \dirname(__DIR__, 4).'/src/Eccube/Service/TaxRuleService.php';
class TaxRuleService_289f969 extends \Eccube\Service\TaxRuleService implements \ProxyManager\Proxy\VirtualProxyInterface
{
/**
* @var \Eccube\Service\TaxRuleService|null wrapped object, if the proxy is initialized
*/
private $valueHolder3b5e3 = null;
/**
* @var \Closure|null initializer responsible for generating the wrapped object
*/
private $initializerd4eb8 = null;
/**
* @var bool[] map of public properties of the parent class
*/
private static $publicPropertiesa6d39 = [
];
public function getTax($price, $product = null, $productClass = null, $pref = null, $country = null)
{
$this->initializerd4eb8 && ($this->initializerd4eb8->__invoke($valueHolder3b5e3, $this, 'getTax', array('price' => $price, 'product' => $product, 'productClass' => $productClass, 'pref' => $pref, 'country' => $country), $this->initializerd4eb8) || 1) && $this->valueHolder3b5e3 = $valueHolder3b5e3;
return $this->valueHolder3b5e3->getTax($price, $product, $productClass, $pref, $country);
}
public function getPriceIncTax($price, $product = null, $productClass = null, $pref = null, $country = null)
{
$this->initializerd4eb8 && ($this->initializerd4eb8->__invoke($valueHolder3b5e3, $this, 'getPriceIncTax', array('price' => $price, 'product' => $product, 'productClass' => $productClass, 'pref' => $pref, 'country' => $country), $this->initializerd4eb8) || 1) && $this->valueHolder3b5e3 = $valueHolder3b5e3;
return $this->valueHolder3b5e3->getPriceIncTax($price, $product, $productClass, $pref, $country);
}
public function calcTax($price, $taxRate, $RoundingType, $taxAdjust = 0)
{
$this->initializerd4eb8 && ($this->initializerd4eb8->__invoke($valueHolder3b5e3, $this, 'calcTax', array('price' => $price, 'taxRate' => $taxRate, 'RoundingType' => $RoundingType, 'taxAdjust' => $taxAdjust), $this->initializerd4eb8) || 1) && $this->valueHolder3b5e3 = $valueHolder3b5e3;
return $this->valueHolder3b5e3->calcTax($price, $taxRate, $RoundingType, $taxAdjust);
}
public function calcTaxIncluded($price, $taxRate, $RoundingType, $taxAdjust = 0)
{
$this->initializerd4eb8 && ($this->initializerd4eb8->__invoke($valueHolder3b5e3, $this, 'calcTaxIncluded', array('price' => $price, 'taxRate' => $taxRate, 'RoundingType' => $RoundingType, 'taxAdjust' => $taxAdjust), $this->initializerd4eb8) || 1) && $this->valueHolder3b5e3 = $valueHolder3b5e3;
return $this->valueHolder3b5e3->calcTaxIncluded($price, $taxRate, $RoundingType, $taxAdjust);
}
/**
* Constructor for lazy initialization
*
* @param \Closure|null $initializer
*/
public static function staticProxyConstructor($initializer)
{
static $reflection;
$reflection = $reflection ?? new \ReflectionClass(__CLASS__);
$instance = $reflection->newInstanceWithoutConstructor();
unset($instance->BaseInfo, $instance->taxRuleRepository);
$instance->initializerd4eb8 = $initializer;
return $instance;
}
public function __construct(\Eccube\Repository\TaxRuleRepository $taxRuleRepository, \Eccube\Repository\BaseInfoRepository $baseInfoRepository)
{
static $reflection;
if (! $this->valueHolder3b5e3) {
$reflection = $reflection ?? new \ReflectionClass('Eccube\\Service\\TaxRuleService');
$this->valueHolder3b5e3 = $reflection->newInstanceWithoutConstructor();
unset($this->BaseInfo, $this->taxRuleRepository);
}
$this->valueHolder3b5e3->__construct($taxRuleRepository, $baseInfoRepository);
}
public function & __get($name)
{
$this->initializerd4eb8 && ($this->initializerd4eb8->__invoke($valueHolder3b5e3, $this, '__get', ['name' => $name], $this->initializerd4eb8) || 1) && $this->valueHolder3b5e3 = $valueHolder3b5e3;
if (isset(self::$publicPropertiesa6d39[$name])) {
return $this->valueHolder3b5e3->$name;
}
$realInstanceReflection = new \ReflectionClass('Eccube\\Service\\TaxRuleService');
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHolder3b5e3;
$backtrace = debug_backtrace(false, 1);
trigger_error(
sprintf(
'Undefined property: %s::$%s in %s on line %s',
$realInstanceReflection->getName(),
$name,
$backtrace[0]['file'],
$backtrace[0]['line']
),
\E_USER_NOTICE
);
return $targetObject->$name;
}
$targetObject = $this->valueHolder3b5e3;
$accessor = function & () use ($targetObject, $name) {
return $targetObject->$name;
};
$backtrace = debug_backtrace(true, 2);
$scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
$accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
$returnValue = & $accessor();
return $returnValue;
}
public function __set($name, $value)
{
$this->initializerd4eb8 && ($this->initializerd4eb8->__invoke($valueHolder3b5e3, $this, '__set', array('name' => $name, 'value' => $value), $this->initializerd4eb8) || 1) && $this->valueHolder3b5e3 = $valueHolder3b5e3;
$realInstanceReflection = new \ReflectionClass('Eccube\\Service\\TaxRuleService');
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHolder3b5e3;
$targetObject->$name = $value;
return $targetObject->$name;
}
$targetObject = $this->valueHolder3b5e3;
$accessor = function & () use ($targetObject, $name, $value) {
$targetObject->$name = $value;
return $targetObject->$name;
};
$backtrace = debug_backtrace(true, 2);
$scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
$accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
$returnValue = & $accessor();
return $returnValue;
}
public function __isset($name)
{
$this->initializerd4eb8 && ($this->initializerd4eb8->__invoke($valueHolder3b5e3, $this, '__isset', array('name' => $name), $this->initializerd4eb8) || 1) && $this->valueHolder3b5e3 = $valueHolder3b5e3;
$realInstanceReflection = new \ReflectionClass('Eccube\\Service\\TaxRuleService');
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHolder3b5e3;
return isset($targetObject->$name);
}
$targetObject = $this->valueHolder3b5e3;
$accessor = function () use ($targetObject, $name) {
return isset($targetObject->$name);
};
$backtrace = debug_backtrace(true, 2);
$scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
$accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
$returnValue = $accessor();
return $returnValue;
}
public function __unset($name)
{
$this->initializerd4eb8 && ($this->initializerd4eb8->__invoke($valueHolder3b5e3, $this, '__unset', array('name' => $name), $this->initializerd4eb8) || 1) && $this->valueHolder3b5e3 = $valueHolder3b5e3;
$realInstanceReflection = new \ReflectionClass('Eccube\\Service\\TaxRuleService');
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHolder3b5e3;
unset($targetObject->$name);
return;
}
$targetObject = $this->valueHolder3b5e3;
$accessor = function () use ($targetObject, $name) {
unset($targetObject->$name);
return;
};
$backtrace = debug_backtrace(true, 2);
$scopeObject = isset($backtrace[1]['object']) ? $backtrace[1]['object'] : new \ProxyManager\Stub\EmptyClassStub();
$accessor = $accessor->bindTo($scopeObject, get_class($scopeObject));
$accessor();
}
public function __clone()
{
$this->initializerd4eb8 && ($this->initializerd4eb8->__invoke($valueHolder3b5e3, $this, '__clone', array(), $this->initializerd4eb8) || 1) && $this->valueHolder3b5e3 = $valueHolder3b5e3;
$this->valueHolder3b5e3 = clone $this->valueHolder3b5e3;
}
public function __sleep()
{
$this->initializerd4eb8 && ($this->initializerd4eb8->__invoke($valueHolder3b5e3, $this, '__sleep', array(), $this->initializerd4eb8) || 1) && $this->valueHolder3b5e3 = $valueHolder3b5e3;
return array('valueHolder3b5e3');
}
public function __wakeup()
{
unset($this->BaseInfo, $this->taxRuleRepository);
}
public function setProxyInitializer(\Closure $initializer = null) : void
{
$this->initializerd4eb8 = $initializer;
}
public function getProxyInitializer() : ?\Closure
{
return $this->initializerd4eb8;
}
public function initializeProxy() : bool
{
return $this->initializerd4eb8 && ($this->initializerd4eb8->__invoke($valueHolder3b5e3, $this, 'initializeProxy', array(), $this->initializerd4eb8) || 1) && $this->valueHolder3b5e3 = $valueHolder3b5e3;
}
public function isProxyInitialized() : bool
{
return null !== $this->valueHolder3b5e3;
}
public function getWrappedValueHolderValue()
{
return $this->valueHolder3b5e3;
}
}
if (!\class_exists('TaxRuleService_289f969', false)) {
\class_alias(__NAMESPACE__.'\\TaxRuleService_289f969', 'TaxRuleService_289f969', false);
}