Documentation

ProductInterface

Interface for a product.

Table of Contents

__construct()  : mixed
getName()  : string
Get the name of the product.
getPrice()  : float
Get the price of the product.
getTaxRate()  : float
Get the tax rate for this product.

Methods

__construct()

public __construct(string $name, float $price) : mixed
Parameters
$name : string

Product name.

$price : float

Product price.

Return values
mixed

getName()

Get the name of the product.

public getName() : string
Return values
string

getPrice()

Get the price of the product.

public getPrice() : float
Return values
float

getTaxRate()

Get the tax rate for this product.

public getTaxRate() : float
Return values
float

Search results