zyberware/var-manager

Provides an easy way to save variables with getter- and setter-methods.

v0.1.0 2014-04-13 03:05 UTC

README

VarManager provides an easy way to save variables with getter- and setter-methods.

Example

$vars = new \ZyberWare\VarManager();
$vars->setDay('Friday');
$vars->setConfig('main', $mainConfig);
$vars->setConfig('db', $dbConfig);

var_dump(
    $vars->getDay(),
    $vars->getConfig('main'),
    $vars->getConfig('db')
);

Documentation

To create the docs, just run phpdoc in the the project-root. An online-version is available at phpdoc.zyberware.org/var-manager/.

License

This software is licensed under the Mozilla Public License v. 2.0. For more information, read the file LICENSE.