Interface for a product.
- Full name:
\PhpDocumentorMarkdown\Example\ProductInterface
public __construct(string $name, float $price): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | Product name. |
$price |
float | Product price. |
Get the name of the product.
public getName(): string
Get the price of the product.
public getPrice(): float
Get the tax rate for this product.
public getTaxRate(): float
Automatically generated on 2022-09-09