Jamm\Memory\Tests\CommandsListCheck::getMethodsList PHP Method

getMethodsList() protected method

protected getMethodsList ( string | object $InterfaceClass ) : ReflectionMethod[]
$InterfaceClass string | object
return ReflectionMethod[]
    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;
    }