Skip to content
Saggre edited this page Apr 24, 2022 · 1 revision

Pizza

A pizza.

Properties

name

Product name.

private string $name

price

Product price.

protected float $price

base

Pizza base.

protected ?\PhpDocumentorMarkdown\Example\Pizza\Base $base

Methods

__construct

public __construct(string $name, float $price, \PhpDocumentorMarkdown\Example\Pizza\Base|null $base = null): mixed

Parameters:

Parameter Type Description
$name string Product name.
$price float Product price.
$base \PhpDocumentorMarkdown\Example\Pizza\Base|null Pizza base.

getName

Get the name of the product.

public getName(): string

Return Value:

The name of the product.


getPrice

Get the price of the product.

public getPrice(): float

jsonSerialize

public jsonSerialize(): mixed

Inherited methods

isReviewed

Whether the object has been reviewed.

public isReviewed(): bool

getTaxRate

Get the tax rate for the product.

public getTaxRate(): float


Automatically generated from source code comments on 2022-04-24 using phpDocumentor and saggre/phpdocumentor-markdown

Clone this wiki locally