sugared-rim/php-cs-fixer

View on GitHub
src/Config.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace SugaredRim\PhpCsFixer;

/**
 * @property bool $diff
 * @property bool $dry-run
 */
class Config extends \PhpCsFixer\Config
{
    private $extended = array();

    public function __get($name)
    {
        if (isset($this->extended[$name])) {
            return $this->extended[$name];
        }
    }

    public function __set($name, $value)
    {
        $this->extended[$name] = $value;
    }

    public function __isset($name)
    {
        return isset($this->extended[$name]);
    }

    public function __unset($name)
    {
        unset($this->extended[$name]);
    }
}