1<?php
2
3/**
4 * This file is part of the FreeDSx LDAP package.
5 *
6 * (c) Chad Sikorra <Chad.Sikorra@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace FreeDSx\Ldap\Protocol\ServerProtocolHandler;
13
14use FreeDSx\Ldap\Protocol\Factory\ResponseFactory;
15
16/**
17 * Base handler (easy access to the response factory).
18 *
19 * @author Chad Sikorra <Chad.Sikorra@gmail.com>
20 */
21abstract class BaseServerHandler
22{
23    /**
24     * @var ResponseFactory
25     */
26    protected $responseFactory;
27
28    public function __construct(ResponseFactory $responseFactory = null)
29    {
30        $this->responseFactory = $responseFactory ?? new ResponseFactory();
31    }
32}
33