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