protected function getRequestBody(ServerRequestInterface $request) : string
    {
        if ($decryptedBody = $request->getAttribute('ncryptf-decrypted-body', false)) {
            return $decryptedBody;
        }

        return $request->getBody()->getContents();
    }
protected function getRequestBody(ServerRequestInterface $request) : string
    {
        if ($decryptedBody = $request->getAttribute('ncryptf-decrypted-body', false)) {
            return $decryptedBody;
        }

        return $request->getBody()->getContents();
    }
protected function getRequestBody ( ServerRequestInterface $ request ) : string { if ( $ decryptedBody = $ request -> getAttribute ( 'ncryptf-decrypted-body' , false ) ) { return $ decryptedBody ; } return $ request -> getBody ( ) -> getContents ( ) ; }
Returns the plaintext request body.

@param ServerRequestInterface $request
@return string
Returns the plaintext request body .