resume/src/Sikofitt/Config/ConfigTrait.php

23 lines
363 B
PHP
Raw Normal View History

2016-07-03 20:54:55 -07:00
<?php
/**
*
*/
namespace Sikofitt\Config;
trait ConfigTrait
{
/**
* @param $name
* @param null $value
* @return mixed
*/
public function config($name, $value = null) {
if(null === $value) {
return $this['config']->get ($name);
} else {
$this['config']->set($name, $value);
}
}
}