data = []; foreach($args as $index => $value){ $this->data[$index] = $value; } } public function __get($index){ return (isset($this->data[$index]) && $this->data[$index] != '') ? $this->data[$index] : null; } } ?>