ServiceFactory
Instantiates service item objects
Table of Contents
Methods
| invoice() | Creates an instance of InvoiceItems |
| invoiceData() | Creates an instance of InvoiceDataItems |
| service() | Creates an instance of ServiceItems |
| serviceData() | Creates an instance of ServiceDataItems |
Methods
invoice()
Creates an instance of InvoiceItems
public
invoice(PricingFactory $pricingFactory, ItemFactory $itemFactory, ItemInterface $settings[, ItemCollection $taxes = null ][, ItemInterface $options = null ]) : InvoiceItemsInterface
Parameters
- $pricingFactory : PricingFactory
-
An instance of the PricingFactory
- $itemFactory : ItemFactory
-
An instance of the ItemFactory
- $settings : ItemInterface
-
An item containing a set of settings
- $taxes : ItemCollection = null
-
A collection of items representing taxes
- $options : ItemInterface = null
-
An item containing a set of custom options
Return values
InvoiceItemsInterfaceinvoiceData()
Creates an instance of InvoiceDataItems
public
invoiceData(PricingFactory $pricingFactory, ItemFactory $itemFactory, ItemInterface $settings[, ItemCollection $taxes = null ][, ItemInterface $options = null ]) : InvoiceItemsInterface
Parameters
- $pricingFactory : PricingFactory
-
An instance of the PricingFactory
- $itemFactory : ItemFactory
-
An instance of the ItemFactory
- $settings : ItemInterface
-
An item containing a set of settings
- $taxes : ItemCollection = null
-
A collection of items representing taxes
- $options : ItemInterface = null
-
An item containing a set of custom options
Return values
InvoiceItemsInterfaceservice()
Creates an instance of ServiceItems
public
service(PricingFactory $pricingFactory, ItemFactory $itemFactory, ItemInterface $settings[, ItemCollection $taxes = null ][, ItemCollection $discounts = null ][, ItemInterface $options = null ]) : ServiceItemsInterface
Parameters
- $pricingFactory : PricingFactory
-
An instance of the PricingFactory
- $itemFactory : ItemFactory
-
An instance of the ItemFactory
- $settings : ItemInterface
-
An item containing a set of settings
- $taxes : ItemCollection = null
-
A collection of items representing taxes
- $discounts : ItemCollection = null
-
A collection of items representing discounts
- $options : ItemInterface = null
-
An item containing a set of custom options
Return values
ServiceItemsInterfaceserviceData()
Creates an instance of ServiceDataItems
public
serviceData(PricingFactory $pricingFactory, ItemFactory $itemFactory, ItemInterface $settings[, ItemCollection $taxes = null ][, ItemCollection $discounts = null ][, ItemInterface $options = null ]) : ServiceItemsInterface
Parameters
- $pricingFactory : PricingFactory
-
An instance of the PricingFactory
- $itemFactory : ItemFactory
-
An instance of the ItemFactory
- $settings : ItemInterface
-
An item containing a set of settings
- $taxes : ItemCollection = null
-
A collection of items representing taxes
- $discounts : ItemCollection = null
-
A collection of items representing discounts
- $options : ItemInterface = null
-
An item containing a set of custom options