'get', 'set' => 'set' ); if ( ! property_exists($this, $val) || ! isset($valid_types[$type])) { return NULL; } // Auto-magical getters and setters if ($type === 'get') { return $this->$val; } elseif ($type === 'set') { $this->$val = current($args); } } } // End of GetSet.php