-
Notifications
You must be signed in to change notification settings - Fork 8
ProductInterface
Saggre edited this page Apr 24, 2022
·
1 revision
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 from source code comments on 2022-04-24 using phpDocumentor and saggre/phpdocumentor-markdown