Files
farmOS-dev/vendor/consolidation/config/src/ConfigAwareTrait.php
2024-12-10 15:08:16 +01:00

36 lines
624 B
PHP

<?php
namespace Consolidation\Config;
trait ConfigAwareTrait
{
/**
* @var \Consolidation\Config\ConfigInterface
*/
protected $config;
/**
* Set the config management object.
*
* @param \Consolidation\Config\ConfigInterface $config
*
* @return $this
*/
public function setConfig(ConfigInterface $config)
{
$this->config = $config;
return $this;
}
/**
* Get the config management object.
*
* @return \Consolidation\Config\ConfigInterface
*/
public function getConfig()
{
return $this->config;
}
}