<?php
namespace ContainerMmiFdsx;
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 $valueHolder1ca42 = null;
/**
* @var \Closure|null initializer responsible for generating the wrapped object
*/
private $initializer8c698 = null;
/**
* @var bool[] map of public properties of the parent class
*/
private static $publicProperties40eb9 = [
];
public function getTax($price, $product = null, $productClass = null, $pref = null, $country = null)
{
$this->initializer8c698 && ($this->initializer8c698->__invoke($valueHolder1ca42, $this, 'getTax', array('price' => $price, 'product' => $product, 'productClass' => $productClass, 'pref' => $pref, 'country' => $country), $this->initializer8c698) || 1) && $this->valueHolder1ca42 = $valueHolder1ca42;
return $this->valueHolder1ca42->getTax($price, $product, $productClass, $pref, $country);
}
public function getPriceIncTax($price, $product = null, $productClass = null, $pref = null, $country = null)
{
$this->initializer8c698 && ($this->initializer8c698->__invoke($valueHolder1ca42, $this, 'getPriceIncTax', array('price' => $price, 'product' => $product, 'productClass' => $productClass, 'pref' => $pref, 'country' => $country), $this->initializer8c698) || 1) && $this->valueHolder1ca42 = $valueHolder1ca42;
return $this->valueHolder1ca42->getPriceIncTax($price, $product, $productClass, $pref, $country);
}
public function calcTax($price, $taxRate, $RoundingType, $taxAdjust = 0)
{
$this->initializer8c698 && ($this->initializer8c698->__invoke($valueHolder1ca42, $this, 'calcTax', array('price' => $price, 'taxRate' => $taxRate, 'RoundingType' => $RoundingType, 'taxAdjust' => $taxAdjust), $this->initializer8c698) || 1) && $this->valueHolder1ca42 = $valueHolder1ca42;
return $this->valueHolder1ca42->calcTax($price, $taxRate, $RoundingType, $taxAdjust);
}
public function calcTaxIncluded($price, $taxRate, $RoundingType, $taxAdjust = 0)
{
$this->initializer8c698 && ($this->initializer8c698->__invoke($valueHolder1ca42, $this, 'calcTaxIncluded', array('price' => $price, 'taxRate' => $taxRate, 'RoundingType' => $RoundingType, 'taxAdjust' => $taxAdjust), $this->initializer8c698) || 1) && $this->valueHolder1ca42 = $valueHolder1ca42;
return $this->valueHolder1ca42->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->initializer8c698 = $initializer;
return $instance;
}
public function __construct(\Eccube\Repository\TaxRuleRepository $taxRuleRepository, \Eccube\Repository\BaseInfoRepository $baseInfoRepository)
{
static $reflection;
if (! $this->valueHolder1ca42) {
$reflection = $reflection ?? new \ReflectionClass('Eccube\\Service\\TaxRuleService');
$this->valueHolder1ca42 = $reflection->newInstanceWithoutConstructor();
unset($this->BaseInfo, $this->taxRuleRepository);
}
$this->valueHolder1ca42->__construct($taxRuleRepository, $baseInfoRepository);
}
public function & __get($name)
{
$this->initializer8c698 && ($this->initializer8c698->__invoke($valueHolder1ca42, $this, '__get', ['name' => $name], $this->initializer8c698) || 1) && $this->valueHolder1ca42 = $valueHolder1ca42;
if (isset(self::$publicProperties40eb9[$name])) {
return $this->valueHolder1ca42->$name;
}
$realInstanceReflection = new \ReflectionClass('Eccube\\Service\\TaxRuleService');
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHolder1ca42;
$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->valueHolder1ca42;
$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->initializer8c698 && ($this->initializer8c698->__invoke($valueHolder1ca42, $this, '__set', array('name' => $name, 'value' => $value), $this->initializer8c698) || 1) && $this->valueHolder1ca42 = $valueHolder1ca42;
$realInstanceReflection = new \ReflectionClass('Eccube\\Service\\TaxRuleService');
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHolder1ca42;
$targetObject->$name = $value;
return $targetObject->$name;
}
$targetObject = $this->valueHolder1ca42;
$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->initializer8c698 && ($this->initializer8c698->__invoke($valueHolder1ca42, $this, '__isset', array('name' => $name), $this->initializer8c698) || 1) && $this->valueHolder1ca42 = $valueHolder1ca42;
$realInstanceReflection = new \ReflectionClass('Eccube\\Service\\TaxRuleService');
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHolder1ca42;
return isset($targetObject->$name);
}
$targetObject = $this->valueHolder1ca42;
$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->initializer8c698 && ($this->initializer8c698->__invoke($valueHolder1ca42, $this, '__unset', array('name' => $name), $this->initializer8c698) || 1) && $this->valueHolder1ca42 = $valueHolder1ca42;
$realInstanceReflection = new \ReflectionClass('Eccube\\Service\\TaxRuleService');
if (! $realInstanceReflection->hasProperty($name)) {
$targetObject = $this->valueHolder1ca42;
unset($targetObject->$name);
return;
}
$targetObject = $this->valueHolder1ca42;
$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->initializer8c698 && ($this->initializer8c698->__invoke($valueHolder1ca42, $this, '__clone', array(), $this->initializer8c698) || 1) && $this->valueHolder1ca42 = $valueHolder1ca42;
$this->valueHolder1ca42 = clone $this->valueHolder1ca42;
}
public function __sleep()
{
$this->initializer8c698 && ($this->initializer8c698->__invoke($valueHolder1ca42, $this, '__sleep', array(), $this->initializer8c698) || 1) && $this->valueHolder1ca42 = $valueHolder1ca42;
return array('valueHolder1ca42');
}
public function __wakeup()
{
unset($this->BaseInfo, $this->taxRuleRepository);
}
public function setProxyInitializer(\Closure $initializer = null) : void
{
$this->initializer8c698 = $initializer;
}
public function getProxyInitializer() : ?\Closure
{
return $this->initializer8c698;
}
public function initializeProxy() : bool
{
return $this->initializer8c698 && ($this->initializer8c698->__invoke($valueHolder1ca42, $this, 'initializeProxy', array(), $this->initializer8c698) || 1) && $this->valueHolder1ca42 = $valueHolder1ca42;
}
public function isProxyInitialized() : bool
{
return null !== $this->valueHolder1ca42;
}
public function getWrappedValueHolderValue()
{
return $this->valueHolder1ca42;
}
}
if (!\class_exists('TaxRuleService_289f969', false)) {
\class_alias(__NAMESPACE__.'\\TaxRuleService_289f969', 'TaxRuleService_289f969', false);
}