1 | <?php |
||
18 | final class EntityInteractionEvent extends Event |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $entityClass; |
||
25 | |||
26 | /** |
||
27 | * @var string|null |
||
28 | */ |
||
29 | private $entityId; |
||
30 | |||
31 | /** |
||
32 | * @var object|null |
||
33 | */ |
||
34 | private $entity; |
||
35 | |||
36 | /** |
||
37 | * @var string|null |
||
38 | */ |
||
39 | private $method; |
||
40 | |||
41 | /** |
||
42 | * @var array |
||
43 | */ |
||
44 | private $arguments; |
||
45 | |||
46 | /** |
||
47 | * @param object|null $entity |
||
48 | */ |
||
49 | 20 | public function __construct( |
|
65 | |||
66 | 1 | public function getEntityClass(): string |
|
70 | |||
71 | 1 | public function getEntityId(): ?string |
|
75 | |||
76 | /** |
||
77 | * @return object|null |
||
78 | */ |
||
79 | 1 | public function getEntity() |
|
83 | |||
84 | 1 | public function getMethod(): ?string |
|
88 | |||
89 | 1 | public function getArguments(): array |
|
93 | |||
94 | } |
||
95 |