Blesta Source Documentation

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
InvoiceItemsInterface

invoiceData()

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
InvoiceItemsInterface

service()

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
ServiceItemsInterface

serviceData()

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

Return values
ServiceItemsInterface
Tags
subpackage

core.Pricing.Presenter.Items

copyright

Copyright (c) 2019, Phillips Data, Inc.

license

http://www.blesta.com/license/ The Blesta License Agreement

link

Blesta


        
On this page

Search results