InCollectionMatchingSegment
in package
implements
Segment
Interfaces, Classes and Traits
Table of Contents
- NAME = 'in_collection_matching_segment'
- $criteria : array<string|int, mixed>
- $id : string
- __construct() : mixed
- InCollectionMatchingSegment constructor.
- criteria() : array<string, mixed>
- id() : string
- jsonSerialize() : mixed
- match() : bool
- toArray() : array<string, string|array>
- type() : string
- isAMatch() : bool
Constants
NAME
public
mixed
NAME
= 'in_collection_matching_segment'
Properties
$criteria
private
array<string|int, mixed>
$criteria
$id
private
string
$id
Methods
__construct()
InCollectionMatchingSegment constructor.
public
__construct(string $id, array<string, mixed> $criteria) : mixed
Parameters
- $id : string
- $criteria : array<string, mixed>
Return values
mixed —criteria()
public
criteria() : array<string, mixed>
Return values
array<string, mixed> —id()
public
id() : string
Return values
string —jsonSerialize()
public
jsonSerialize() : mixed
Return values
mixed —match()
public
match(array<string|int, mixed> $payload) : bool
Parameters
- $payload : array<string|int, mixed>
Return values
bool —toArray()
public
toArray() : array<string, string|array>
Return values
array<string, string|array> —type()
public
type() : string
Return values
string —isAMatch()
private
isAMatch(mixed $payloadValue, mixed $criterionValue) : bool
Parameters
- $payloadValue : mixed
- $criterionValue : mixed