phpDocumentor

PriceBuilder implements PriceBuilderInterface

Class PriceBuilder

Tags
codeCoverageIgnore

not testable due to the usage of the MainFactory

Interfaces, Classes and Traits

PriceBuilderInterface
Interface PriceBuilderInterface

Table of Contents

$data  : array<string|int, mixed>
$priceFormatted  : PriceFormatted
$pricePlain  : PricePlain
$productId  : ProductId
$quantity  : float
$status  : PriceStatus
$taxClassId  : int
build()  : Price
create()  : self
reset()  : self
withData()  : mixed
withPriceFormatted()  : PriceBuilderInterface
withPricePlain()  : PriceBuilderInterface
withProductId()  : self
withQuantity()  : self
withStatus()  : self
withTaxClassId()  : self
createCalculator()  : mixed

Properties

Methods

create()

public static create() : self
Tags
inheritDoc
Return values
self

reset()

public reset() : self
Tags
inheritDoc
Return values
self

withData()

public withData(string $string, mixed $value) : mixed
Parameters
$string : string
$value : mixed
Tags
inheritDoc
Return values
mixed

withQuantity()

public withQuantity(float $value) : self
Parameters
$value : float
Tags
inheritDoc
Return values
self

withTaxClassId()

public withTaxClassId(int $taxClassId) : self
Parameters
$taxClassId : int
Tags
inheritDoc
Return values
self

createCalculator()

protected createCalculator() : mixed
Return values
mixed

Search results