1 | <?php |
||
13 | class ConnectionEvent extends GenericEvent |
||
14 | { |
||
15 | const CLIENT_CREATED = 'facile_mongo_db.event.connection_client.created'; |
||
16 | |||
17 | /** @var string */ |
||
18 | private $clientName; |
||
19 | |||
20 | /** |
||
21 | * ConnectionEvent constructor. |
||
22 | * |
||
23 | * @param Client $client |
||
24 | * @param string $clientName |
||
25 | * @param array $arguments |
||
26 | */ |
||
27 | 9 | public function __construct(Client $client, string $clientName, array $arguments = []) |
|
33 | |||
34 | /** |
||
35 | * @return Client |
||
36 | */ |
||
37 | public function getConnectionClient(): Client |
||
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | 2 | public function getClientName(): string |
|
49 | |||
50 | |||
51 | } |
||
52 |