BetterReflection\Reflection\ReflectionClass::getMethods PHP Method

getMethods() public method

Fetch an array of all methods for this class.
public getMethods ( ) : BetterReflection\Reflection\ReflectionMethod[]
return BetterReflection\Reflection\ReflectionMethod[]
    public function getMethods()
    {
        return array_values($this->getMethodsIndexedByName());
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function getMethods($filter = null)
 {
     $methods = $this->betterReflectionClass->getMethods();
     $wrappedMethods = [];
     foreach ($methods as $key => $method) {
         $wrappedMethods[$key] = new ReflectionMethod($method);
     }
     return $wrappedMethods;
 }
All Usage Examples Of BetterReflection\Reflection\ReflectionClass::getMethods