NotificationTargetProbe
extends EntityNotificationTargetProbe
in package
FinalYes
Notification targets owned by this module (see {@see EntityNotificationTargetProbe}).
Table of Contents
Methods
- __construct() : mixed
- existingIds() : array<int, int>|null
- typeKeysForEntity() : array<int, string>
- Notification type keys whose target is this (just deleted) entity — `[]` = none of this probe's types points to it. Called for every ORM delete, so it must stay cheap.
- entities() : array<string, class-string>
Methods
__construct()
public
__construct(EntityManagerInterface $em) : mixed
Parameters
- $em : EntityManagerInterface
existingIds()
public
existingIds(string $typeKey, array<string|int, mixed> $ids) : array<int, int>|null
Parameters
- $typeKey : string
- $ids : array<string|int, mixed>
-
record ids the notifications of this type point to
Return values
array<int, int>|null —ids that still exist; null = this probe does not own the type
typeKeysForEntity()
Notification type keys whose target is this (just deleted) entity — `[]` = none of this probe's types points to it. Called for every ORM delete, so it must stay cheap.
public
typeKeysForEntity(object $entity) : array<int, string>
Parameters
- $entity : object
Return values
array<int, string>entities()
protected
entities() : array<string, class-string>
Return values
array<string, class-string> —notification type key => Api entity class