-
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(): array
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