Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
| 2 | |
| 3 | namespace LdapRecord\Events; |
| 4 | |
| 5 | use LdapRecord\Connection; |
| 6 | |
| 7 | abstract 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 | } |