PHP Class Elcodi\Plugin\CustomShippingBundle\Factory\ShippingRangeFactory

Inheritance: extends Elcodi\Component\Core\Factory\Abstracts\AbstractFactory
ファイルを表示 Open project: elcodi/bamboo

Protected Properties

Property Type Description
$defaultCurrencyWrapper Elcodi\Component\Core\Wrapper\Interfaces\WrapperInterface Currency wrapper used to access default Currency object

Public Methods

Method Description
__construct ( Elcodi\Component\Core\Wrapper\Interfaces\WrapperInterface $defaultCurrencyWrapper ) Factory constructor
create ( ) : Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface Creates an instance of an entity.

Protected Methods

Method Description
createZeroAmountMoney ( ) : Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface Returns a zero-initialized Money object to be assigned to product prices

Method Details

__construct() public method

Factory constructor
public __construct ( Elcodi\Component\Core\Wrapper\Interfaces\WrapperInterface $defaultCurrencyWrapper )
$defaultCurrencyWrapper Elcodi\Component\Core\Wrapper\Interfaces\WrapperInterface Default Currency wrapper

create() public method

This method must return always an empty instance
public create ( ) : Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface
return Elcodi\Plugin\CustomShippingBundle\Entity\Interfaces\ShippingRangeInterface Empty entity

createZeroAmountMoney() protected method

Returns a zero-initialized Money object to be assigned to product prices
protected createZeroAmountMoney ( ) : Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface
return Elcodi\Component\Currency\Entity\Interfaces\MoneyInterface

Property Details

$defaultCurrencyWrapper protected_oe property

Currency wrapper used to access default Currency object
protected WrapperInterface,Elcodi\Component\Core\Wrapper\Interfaces $defaultCurrencyWrapper
return Elcodi\Component\Core\Wrapper\Interfaces\WrapperInterface