PHPDaemon\Config\Section::__construct PHP Method

__construct() public method

Constructor
public __construct ( $arr = [] ) : object
return object
    public function __construct($arr = [])
    {
        foreach ($arr as $k => $v) {
            if (!is_object($v)) {
                $e = new Generic();
                $e->setHumanValue($v);
                $this->{$k} = $e;
            } else {
                $this->{$k} = $v;
            }
        }
    }