<?php
namespace Wpupgrader\Libraries\WordPress\Plugins\Core;

trait ConfigTrait
{
    /** @var \Wpupgrader\Libraries\WordPress\Plugins\Core\BaseConfig $config */
    private $config = null;

    /**
     * @param \Wpupgrader\Libraries\WordPress\Plugins\Core\BaseConfig $config
     * @return $this
     */
    public function setConfig(BaseConfig &$config)
    {
        $this->config = $config;
        return $this;
    }

    /**
     * Get the Plugin Config
     *
     * @return \Wpupgrader\Libraries\WordPress\Plugins\Core\BaseConfig $config
     */
    public function getConfig()
    {
        return $this->config;
    }
}