SellingUnitBuilder
in package
implements
SellingUnitBuilderInterface
Class SellingUnitBuilder
Interfaces, Classes and Traits
Table of Contents
- $dispatcher : EventDispatcherInterface
- $id : SellingUnitId
- $product : ProductDataInterface
- $requestedQuantity : SelectedQuantity
- $xtcPrice : PriceDataInterface
- build() : SellingUnitInterface
- withDispatcher() : SellingUnitBuilderInterface
- withId() : SellingUnitBuilderInterface
- withProduct() : SellingUnitBuilderInterface
- withRequestedQuantity() : mixed
- withXtcPrice() : SellingUnitBuilderInterface
Properties
$dispatcher
protected
EventDispatcherInterface
$dispatcher
$id
protected
SellingUnitId
$id
$product
protected
ProductDataInterface
$product
$requestedQuantity
protected
SelectedQuantity
$requestedQuantity
$xtcPrice
protected
PriceDataInterface
$xtcPrice
Methods
build()
public
build() : SellingUnitInterface
Tags
Return values
SellingUnitInterface —withDispatcher()
public
withDispatcher(EventDispatcherInterface $dispatcher) : SellingUnitBuilderInterface
Parameters
- $dispatcher : EventDispatcherInterface
Tags
Return values
SellingUnitBuilderInterface —withId()
public
withId(SellingUnitId $id) : SellingUnitBuilderInterface
Parameters
- $id : SellingUnitId
Tags
Return values
SellingUnitBuilderInterface —withProduct()
public
withProduct(ProductDataInterface $product) : SellingUnitBuilderInterface
Parameters
- $product : ProductDataInterface
Tags
Return values
SellingUnitBuilderInterface —withRequestedQuantity()
public
withRequestedQuantity(QuantityInterface $quantity) : mixed
Parameters
- $quantity : QuantityInterface
Tags
Return values
mixed —withXtcPrice()
public
withXtcPrice(PriceDataInterface $xtcPrice) : SellingUnitBuilderInterface
Parameters
- $xtcPrice : PriceDataInterface