blob: e9c2c352c2da1c4ce9c0ea0402a36a1e2fbc4c1a [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace LdapRecord\Events;
4
5use LdapRecord\Connection;
6
7abstract class ConnectionEvent
8{
9 /**
10 * The LDAP connection.
11 *
12 * @var Connection
13 */
14 protected $connection;
15
16 /**
17 * Constructor.
18 *
19 * @param Connection $connection
20 */
21 public function __construct(Connection $connection)
22 {
23 $this->connection = $connection;
24 }
25
26 /**
27 * Get the connection pertaining to the event.
28 *
29 * @return Connection
30 */
31 public function getConnection()
32 {
33 return $this->connection;
34 }
35}