PHP Classes

File: src/ConfigAwareTrait.php

Recommend this page to a friend!
  Classes of Vitaly   Queasy PHP Config   src/ConfigAwareTrait.php   Download  
File: src/ConfigAwareTrait.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Queasy PHP Config
Read a configuration from files in several formats
Author: By
Last change:
Date: 3 years ago
Size: 404 bytes
 

Contents

Class file image Download
<?php

namespace queasy\config;

/**
 * Basic Implementation of ConfigAwareInterface.
 */
trait ConfigAwareTrait
{
   
/**
     * The config instance.
     *
     * @var ConfigInterface
     */
   
protected $config;

   
/**
     * Sets a config.
     *
     * @param ConfigInterface $config
     */
   
public function setConfig(ConfigInterface $config)
    {
       
$this->config = $config;
    }
}