-
Notifications
You must be signed in to change notification settings - Fork 9
ManyInterfaces
Sakri Koskimies edited this page Jul 10, 2025
·
1 revision
A ManyInterfaces
ManyInterfaces description
- See: \PhpDocumentorMarkdown\Example\AbstractProduct
- Full name:
\PhpDocumentorMarkdown\Example\ManyInterfaces - Parent interfaces:
\PhpDocumentorMarkdown\Example\ProductInterface,JsonSerializable
Get the instance as an array.
public toArray(): arraypublic __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(): float