public function __get($prop) { switch ($prop) { case 'metric': return $this->_metric; default: return parent::__get($prop); } }