protected function getMethodsList($InterfaceClass) { $Reflection = new \ReflectionClass($InterfaceClass); /** @var \ReflectionMethod[] $Methods */ $Methods = $Reflection->getMethods(); if (empty($Methods)) { throw new \Exception("Can't fetch list of methods"); } return $Methods; }