Documentation

StrictMatchingSegment
in package
implements Segment

Interfaces, Classes and Traits

Segment

Table of Contents

NAME  = 'strict_matching_segment'
$criteria  : array<string|int, mixed>
$id  : string
__construct()  : mixed
Segment constructor.
criteria()  : array<string, mixed>
id()  : string
jsonSerialize()  : array<string, string|array>
match()  : bool
toArray()  : array<string, string|array>
type()  : string

Constants

Properties

Methods

__construct()

Segment constructor.

public __construct(string $id, array<string, mixed> $criteria) : mixed
Parameters
$id : string
$criteria : array<string, mixed>
Return values
mixed

jsonSerialize()

public jsonSerialize() : array<string, string|array>
Return values
array<string, string|array>

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>

Search results