SlotFlow API Documentation

FlowContext
in package

Runtime context object passed to policies during one flow step.

Table of Contents

Properties

$context  : array<string|int, mixed>
$edges  : array<string|int, mixed>
$inventory  : QuantityState
$quantity  : int|float
$space  : SlotSpace
$subject  : mixed

Methods

__construct()  : mixed
slotAttribute()  : mixed
Read one remembered slot attribute with an optional default.
slotAttributes()  : array<string, mixed>
Return remembered attributes for one slot in the current inventory.

Properties

$context read-only

public array<string|int, mixed> $context = []

$edges read-only

public array<string|int, mixed> $edges

Methods

slotAttribute()

Read one remembered slot attribute with an optional default.

public slotAttribute(Slot $slot, string $name[, mixed $default = null ]) : mixed
Parameters
$slot : Slot
$name : string
$default : mixed = null

slotAttributes()

Return remembered attributes for one slot in the current inventory.

public slotAttributes(Slot $slot) : array<string, mixed>
Parameters
$slot : Slot
Return values
array<string, mixed>

        
On this page

Search results