-
Notifications
You must be signed in to change notification settings - Fork 9
Pizza
Saggre edited this page Apr 24, 2022
·
2 revisions
A pizza.
- Full name:
\PhpDocumentorMarkdown\Example\Pizza - Parent class:
\PhpDocumentorMarkdown\Example\AbstractProduct - This class implements:
\PhpDocumentorMarkdown\Example\ProductInterface,\JsonSerializable
Product name.
private string $nameProduct price.
protected float $pricePizza base.
protected ?\PhpDocumentorMarkdown\Example\Pizza\Base $basepublic __construct(string $name, float $price, \PhpDocumentorMarkdown\Example\Pizza\Base|null $base = null): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$name |
string | Product name. |
$price |
float | Product price. |
$base |
\PhpDocumentorMarkdown\Example\Pizza\Base|null | Pizza base. |
Get the name of the product.
public getName(): stringReturn Value:
The name of the product.
Get the price of the product.
public getPrice(): floatpublic jsonSerialize(): mixedWhether the object has been reviewed.
public isReviewed(): boolGet the tax rate for the product.
public getTaxRate(): floatAutomatically generated from source code comments on 2022-04-24 using phpDocumentor and saggre/phpdocumentor-markdown