/** * Get class ReflectionMethods objects array list. * * @return array */ public function getMethods($filter = null) { $args = func_get_args(); $methods = ReflectionMethod::factory($this->name); if (count($args)) { return $this->filter($methods, current($args)); } return $methods; }