Copied!

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

public $contentTypeIdentifier

MatchContext.php : 27
public string|null $contentTypeIdentifier = null

public $locationPathStrings

MatchContext.php : 29
public array<string|int, mixed> $locationPathStrings = []

public $sectionId

MatchContext.php : 28
public int|null $sectionId = null

Methods

public__construct()

MatchContext.php : 26
public __construct([string|null $contentTypeIdentifier = null ][, int|null $sectionId = null ][, array<int, string> $locationPathStrings = [] ])

Parameters

Name Type Default value Description
$contentTypeIdentifier string|null null -
$sectionId int|null null -
$locationPathStrings array<int, string> [] -