<?php

namespace idoit\Module\Cmdb\Model\Matcher;

use idoit\Component\Provider\DiInjectable;
use idoit\Component\Provider\Factory;

/**
 * i-doit
 *
 * Ci Models
 *
 * @package     i-doit
 * @subpackage  Cmdb
 * @author      Dennis Stücken <dstuecken@i-doit.com>
 * @version     1.8
 * @copyright   synetics GmbH
 * @license     http://www.i-doit.com/license
 */
abstract class AbstractMatcher
{
    use Factory, DiInjectable;

    /**
     * @var MatchConfig
     */
    protected $config;

    /**
     * @return MatchConfig
     */
    public function getConfig(): MatchConfig
    {
        return $this->config;
    }

    /**
     * Matcher constructor.
     *
     * @param MatchConfig $config
     */
    public function __construct(MatchConfig $config)
    {
        $this->setDi($config->getDi());
        $this->config = $config;
    }
}
