StrictMatchingSegment
in package
implements
Segment
Interfaces, Classes and Traits
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
NAME
public
mixed
NAME
= 'strict_matching_segment'
Properties
$criteria
private
array<string|int, mixed>
$criteria
$id
private
string
$id
Methods
__construct()
Segment 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() : 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> —type()
public
type() : string