Strategy
in package
implements
JsonSerializable
Interfaces, Classes and Traits
- JsonSerializable
Table of Contents
- $segments : array<string|int, mixed>
- $strategyId : StrategyId
- $strategyType : StrategyType
- __construct() : mixed
- Strategy constructor.
- id() : StrategyId
- jsonSerialize() : array<string|int, mixed>
- segments() : array<string|int, Segment>
- type() : StrategyType
Properties
$segments
private
array<string|int, mixed>
$segments
$strategyId
private
StrategyId
$strategyId
$strategyType
private
StrategyType
$strategyType
Methods
__construct()
Strategy constructor.
public
__construct(StrategyId $strategyId, StrategyType $strategyType[, array<string|int, Segment> $segments = [] ]) : mixed
Parameters
- $strategyId : StrategyId
- $strategyType : StrategyType
- $segments : array<string|int, Segment> = []
Return values
mixed —id()
public
id() : StrategyId
Return values
StrategyId —jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —segments()
public
segments() : array<string|int, Segment>
Return values
array<string|int, Segment> —type()
public
type() : StrategyType