public function getMethods() { if (is_array($this->m)) { return $this->m; } else { return array(); } }