src/Psecio/Iniscan/Rule.php
public function setConfig($config)
	{
		if (is_object($config)) {
			$config = get_object_vars($config);
		}
		foreach ($config as $index => $value) {
			$this->$index = $value;
		}
	}
public function setConfig($config)
	{
		if (is_object($config)) {
			$config = get_object_vars($config);
		}
		foreach ($config as $index => $value) {
			$this->$index = $value;
		}
	}
public function setConfig ( $ config ) { if ( is_object ( $ config ) ) { $ config = get_object_vars ( $ config ) ; } foreach ( $ config as $ index => $ value ) { $ this -> $ index = $ value ; } }
Set the configuration values to the class properties

@param array $config Configuration values
Set the configuration values to the class properties