-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPendingRelationMessage.php
More file actions
54 lines (47 loc) · 1.31 KB
/
PendingRelationMessage.php
File metadata and controls
54 lines (47 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
declare(strict_types=1);
namespace FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\Message;
use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\MapUidsAndExtractPendingRelations;
use FriendsOfTYPO3\Interest\DataHandling\Operation\Event\Handler\PersistPendingRelationInformation;
use FriendsOfTYPO3\Interest\DataHandling\Operation\Message\RequiredMessageInterface;
/**
* A message concerning pending relations to be persisted.
*
* @see MapUidsAndExtractPendingRelations
* @see PersistPendingRelationInformation
*/
class PendingRelationMessage implements RequiredMessageInterface
{
/**
* @param string $table
* @param string $field
* @param string[] $remoteIds The pointing remote IDs in a pending relation to record $uid in $field of $table.
*/
public function __construct(
private readonly string $table,
private readonly string $field,
private readonly array $remoteIds
) {
}
/**
* @return string
*/
public function getTable(): string
{
return $this->table;
}
/**
* @return string
*/
public function getField(): string
{
return $this->field;
}
/**
* @return array
*/
public function getRemoteIds(): array
{
return $this->remoteIds;
}
}