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