public function getProperty($property, $default = null) { if (isset($this->{$property})) { return $this->{$property}; } return $default; }