Skip to content

Latest commit

 

History

History
105 lines (35 loc) · 746 Bytes

File metadata and controls

105 lines (35 loc) · 746 Bytes

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 on 2022-09-09