/** * Construct a new reflection method object * @param mixed $classOrName * @param string $name name of the class * @return null */ public function __construct($classOrName = null, $name = null) { parent::__construct($classOrName, $name); if ($name) { $this->className = $classOrName; } }
/** * Get the methods of this class * @param long $filter not implemented * @return array Array containing the method name as the key and a ReflectionMethod object as the value */ public function getMethods($filter = null) { $methods = array(); $classMethods = parent::getMethods(); foreach ($classMethods as $method) { $method = new ReflectionMethod($this->getName(), $method->getName()); $methods[$method->getName()] = $method; } ksort($methods); return $methods; }