1 | <?php |
||
8 | class PublishEvent extends WampEvent |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $event; |
||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | private $exclude; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | private $eligible; |
||
24 | |||
25 | /** |
||
26 | * @param ConnectionInterface $conn |
||
27 | * @param string|Topic $topic The topic the user has attempted to publish to |
||
28 | * @param string $event Payload of the publish |
||
29 | * @param array $exclude A list of session IDs the message should be excluded from (blacklist) |
||
30 | * @param array $eligible A list of session Ids the message should be send to (whitelist) |
||
31 | */ |
||
32 | public function __construct(ConnectionInterface $conn, $topic, $event, array $exclude, array $eligible) |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getEvent() |
||
48 | |||
49 | /** |
||
50 | * @return array |
||
51 | */ |
||
52 | public function getExclude() |
||
56 | |||
57 | /** |
||
58 | * @return array |
||
59 | */ |
||
60 | public function getEligible() |
||
64 | } |
||
65 |