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: 5 months 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;
    }
}


For more information send a message to info at phpclasses dot org.