blob: e9c2c352c2da1c4ce9c0ea0402a36a1e2fbc4c1a [file] [log] [blame]
<?php
namespace LdapRecord\Events;
use LdapRecord\Connection;
abstract class ConnectionEvent
{
/**
* The LDAP connection.
*
* @var Connection
*/
protected $connection;
/**
* Constructor.
*
* @param Connection $connection
*/
public function __construct(Connection $connection)
{
$this->connection = $connection;
}
/**
* Get the connection pertaining to the event.
*
* @return Connection
*/
public function getConnection()
{
return $this->connection;
}
}