createConfig(); parent::__construct($config); } function __call ($method, $arguments) { $name = new String($method); $name = (string)$name->underscoreCamel(); if (preg_match('/^(get|set)_(.*)/', $name, $match)) { if ($match[1] == 'get') { return $this->{$match[2]}; } elseif ($match[1] == 'set') { $this->{$match[2]} = $arguments[0]; } } } protected function createConfig () { return array(); } }