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
$sauceType
protected
string
$sauceType
= 'Tomato'
$toppings
protected
array<string|int, mixed>
$toppings
= ['Cheese', 'Mushroom', 'Pepperoni']
Methods
getSauceType()
public
getSauceType() : string
Return values
stringgetToppings()
public
getToppings() : array<string|int, mixed>
Return values
array<string|int, mixed>preparePizza()
public
preparePizza(string $size) : string
Parameters
- $size : string
Return values
stringapplySauce()
protected
applySauce(string $sauceAmount) : string
Parameters
- $sauceAmount : string