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