public function __get($variable) { if (isset($this->{"_{$variable}"})) { return $this->{"_{$variable}"}; } }