-
Notifications
You must be signed in to change notification settings - Fork 9
ProductInterface
Sakri Koskimies edited this page Jul 10, 2025
·
2 revisions
Interface for a product.
- Full name:
\PhpDocumentorMarkdown\Example\ProductInterface - Parent interfaces:
\PhpDocumentorMarkdown\Example\Arrayable
public __construct(string $name, float $price): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$name |
string | Product name. |
$price |
float | Product price. |
Get the name of the product.
public getName(): stringGet the price of the product.
public getPrice(): floatGet the tax rate for this product.
public getTaxRate(): floatGet the instance as an array.
public toArray(): array