/** * Old methods */ function __get($k) { switch ($k) { case 'num_queries': return $this->total_queries; case 'time': return $this->total_time; } return parent::__get($k); }