1 | <?php |
||
18 | class ClientTerminateEvent extends Event |
||
19 | { |
||
20 | const CLOSED_BY_REMOTE = 'remote'; |
||
21 | |||
22 | const CLOSED_BY_TIMER = 'timer'; |
||
23 | |||
24 | /** |
||
25 | * @var ClientInterface |
||
26 | */ |
||
27 | protected $client; |
||
28 | |||
29 | /** |
||
30 | * @var ChunkServerInterface[] |
||
31 | */ |
||
32 | protected $chunkServers; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $closedBy; |
||
38 | |||
39 | public function __construct(ClientInterface $client, $chunkServers, $closedBy) |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getClosedBy() |
||
54 | |||
55 | /** |
||
56 | * @return ClientInterface |
||
57 | */ |
||
58 | public function getClient() |
||
62 | |||
63 | /** |
||
64 | * @return ChunkServerInterface[] |
||
65 | */ |
||
66 | public function getChunkServers() |
||
70 | } |