for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Facile\MongoDbBundle\Event;
use MongoDB\Client;
use Symfony\Component\EventDispatcher\GenericEvent;
/**
* Class ConnectionEvent.
*/
class ConnectionEvent extends GenericEvent
{
const CLIENT_CREATED = 'facile_mongo_db.event.connection_client.created';
/** @var string */
private $clientName;
* ConnectionEvent constructor.
*
* @param Client $client
* @param string $clientName
* @param array $arguments
public function __construct(Client $client, string $clientName, array $arguments = [])
parent::__construct($client, $arguments);
$this->clientName = $clientName;
}
* @return Client
public function getConnectionClient(): Client
return $this->getSubject();
* @return string
public function getClientName(): string
return $this->clientName;