BetterReflection\Reflection\ReflectionObject::getMethods PHP Method

getMethods() public method

public getMethods ( )
    public function getMethods()
    {
        return $this->reflectionClass->getMethods();
    }

Usage Example

コード例 #1
0
 /**
  * {@inheritDoc}
  */
 public function getMethods($filter = null)
 {
     $methods = $this->betterReflectionObject->getMethods();
     $wrappedMethods = [];
     foreach ($methods as $key => $method) {
         $wrappedMethods[$key] = new ReflectionMethod($method);
     }
     return $wrappedMethods;
 }