Documentation

PizzaToppingTrait uses trait:short

PizzaToppingTrait demonstrates a trait that uses another trait.

This trait uses PizzaSauceTrait to showcase the bug in phpDocumentor where traits used by other traits are not properly documented.

Table of Contents

Constants

SAUCE_VERSION  = '1.0'
Version of the sauce recipe

Properties

$sauceType  : string
$toppings  : array<string|int, mixed>

Methods

getSauceType()  : string
getToppings()  : array<string|int, mixed>
preparePizza()  : string
applySauce()  : string

Constants

SAUCE_VERSION

Version of the sauce recipe

public mixed SAUCE_VERSION = '1.0'

Properties

$toppings

protected array<string|int, mixed> $toppings = ['Cheese', 'Mushroom', 'Pepperoni']

Methods

getToppings()

public getToppings() : array<string|int, mixed>
Return values
array<string|int, mixed>

preparePizza()

public preparePizza(string $size) : string
Parameters
$size : string
Return values
string

applySauce()

protected applySauce(string $sauceAmount) : string
Parameters
$sauceAmount : string
Return values
string

        
On this page

Search results