src/API/Implementation/ApiAbstract.php
private function getApiRequestContext(string $apiClassMethod, array $arguments = []): RequestContext
    {
        $getRequestContext = sprintf("create%sContext", ucfirst($apiClassMethod));

        $this->assertMethodExists($getRequestContext);

        $requestContext = $this->{$getRequestContext}(...$arguments);

        return $requestContext;
    }
private function getApiRequestContext(string $apiClassMethod, array $arguments = []): RequestContext
    {
        $getRequestContext = sprintf("create%sContext", ucfirst($apiClassMethod));

        $this->assertMethodExists($getRequestContext);

        $requestContext = $this->{$getRequestContext}(...$arguments);

        return $requestContext;
    }
private function getApiRequestContext ( string $ apiClassMethod , array $ arguments = [ ] ) : RequestContext { $ getRequestContext = sprintf ( "create%sContext" , ucfirst ( $ apiClassMethod ) ) ; $ this -> assertMethodExists ( $ getRequestContext ) ; $ requestContext = $ this -> { $ getRequestContext } ( ... $ arguments ) ; return $ requestContext ; }
Gets RequestContext for sending

@param string $apiClassMethod
@param array $arguments Arguments that need to be passed to API-related methods

@return RequestContext

@throws MethodDoesNotExistException
Gets RequestContext for sending