Skip to content

ProductInterface

Saggre edited this page Apr 24, 2022 · 1 revision

ProductInterface

Interface for a product.

  • Full name: \PhpDocumentorMarkdown\Example\ProductInterface

Methods

__construct

public __construct(string $name, float $price): mixed

Parameters:

Parameter Type Description
$name string Product name.
$price float Product price.

getName

Get the name of the product.

public getName(): string

getPrice

Get the price of the product.

public getPrice(): float

getTaxRate

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

Clone this wiki locally