Segment
in package
implements
JsonSerializable
Interfaces, Classes and Traits
- JsonSerializable
Table of Contents
- $payload : Payload
- $segmentId : SegmentId
- $segmentType : SegmentType
- __construct() : mixed
-
jsonSerialize()
: array<string, string|array
> - payload() : Payload
- segmentId() : SegmentId
- segmentType() : SegmentType
Properties
$payload
private
Payload
$payload
$segmentId
private
SegmentId
$segmentId
$segmentType
private
SegmentType
$segmentType
Methods
__construct()
public
__construct(SegmentId $segmentId, SegmentType $segmentType, Payload $payload) : mixed
Parameters
- $segmentId : SegmentId
- $segmentType : SegmentType
- $payload : Payload
Return values
mixed —jsonSerialize()
public
jsonSerialize() : array<string, string|array>
Return values
array<string, string|arraypayload()
public
payload() : Payload
Return values
Payload —segmentId()
public
segmentId() : SegmentId
Return values
SegmentId —segmentType()
public
segmentType() : SegmentType