SlotFlow API Documentation

PolicyBuckets
in package

FinalYes

Routes mixed policy bags into the typed buckets used by execution and planning.

Table of Contents

Constants

ALL  = 'policies'
ALLOCATION  = 'allocation-policies'
FILTER  = 'filter-policies'
ORDERING  = 'ordering-policies'
PLANNER  = 'planner-policies'
QUANTITY_CONSTRAINT  = 'quantity-constraint-policies'
SHIPMENT_CALENDAR  = 'shipment-calendar-rules'
SHIPMENT_SPLIT  = 'shipment-split-rules'

Methods

all()  : array<int, PolicyInterface>
applyToStep()  : void
Apply a mixed policy bag to a flow step.
matchesAny()  : bool
mergeEdgeAttributes()  : array<string|int, mixed>
Attach planner-capable policies to one edge-rule metadata array.
planner()  : array<int, PlannerRuleInterface>
resolveCategory()  : array<int, TPolicy>
Resolve one typed category out of a raw policy sequence, applying named overrides.
shipmentCalendar()  : array<int, ShipmentCalendarRuleInterface>
shipmentSplit()  : array<int, ShipmentSplitRuleInterface>
unwrap()  : PolicyInterface}

Constants

QUANTITY_CONSTRAINT

public mixed QUANTITY_CONSTRAINT = 'quantity-constraint-policies'

SHIPMENT_CALENDAR

public mixed SHIPMENT_CALENDAR = 'shipment-calendar-rules'

SHIPMENT_SPLIT

public mixed SHIPMENT_SPLIT = 'shipment-split-rules'

Methods

applyToStep()

Apply a mixed policy bag to a flow step.

public static applyToStep(FlowStep $step, array<string|int, PolicyInterface$policies) : void
Parameters
$step : FlowStep
$policies : array<string|int, PolicyInterface>

mergeEdgeAttributes()

Attach planner-capable policies to one edge-rule metadata array.

public static mergeEdgeAttributes(array<string|int, mixed> $attributes, array<string|int, PolicyInterface$policies) : array<string|int, mixed>
Parameters
$attributes : array<string|int, mixed>
$policies : array<string|int, PolicyInterface>
Return values
array<string|int, mixed>

resolveCategory()

Resolve one typed category out of a raw policy sequence, applying named overrides.

public static resolveCategory(array<string|int, PolicyInterface$policies, callable(PolicyInterface): bool $matches) : array<int, TPolicy>
Parameters
$policies : array<string|int, PolicyInterface>
$matches : callable(PolicyInterface): bool
Tags
template
Return values
array<int, TPolicy>

        
On this page

Search results