public function __set($var, $val) { if (in_array($var, $this->_properties)) { $this->_parent->{$var} = $val; } }