MatchContext
MatchContext.php
:
21
Final
Value object carrying the attributes of a single event subject (content item) that webhook filters match against.
An event carries one per affected subject (see DomainEvent::$matchContexts), so attributes of different subjects (e.g. both content items of a location swap) are never mixed: a webhook filter matches when a single subject satisfies all its dimensions.
Extractors populate it in place before attaching it to a DomainEvent.
Properties¶
$contentTypeIdentifier
¶
MatchContext.php
:
27
|
|
|
$locationPathStrings
¶
MatchContext.php
:
29
|
|
|
$sectionId
¶
MatchContext.php
:
28
|
|
|
Methods¶
__construct()
¶
MatchContext.php
:
26
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $contentTypeIdentifier | string|null | null | - |
| $sectionId | int|null | null | - |
| $locationPathStrings | array<int, string> | [] | - |