public function renderIntoSetCookieHeader(ResponseInterface $response): ResponseInterface
    {
        $response = $response->withoutHeader('set-cookie');

        foreach ($this->cookies as $cookies) {
            $response = $response->withAddedHeader('set-cookie', (string) $cookies);
        }

        return $response;
    }
public function renderIntoSetCookieHeader(ResponseInterface $response): ResponseInterface
    {
        $response = $response->withoutHeader('set-cookie');

        foreach ($this->cookies as $cookies) {
            $response = $response->withAddedHeader('set-cookie', (string) $cookies);
        }

        return $response;
    }
public function renderIntoSetCookieHeader ( ResponseInterface $ response ) : ResponseInterface { $ response = $ response -> withoutHeader ( 'set-cookie' ) ; foreach ( $ this -> cookies as $ cookies ) { $ response = $ response -> withAddedHeader ( 'set-cookie' , ( string ) $ cookies ) ; } return $ response ; }
Render Cookies into a response.

@param \Psr\Http\Message\ResponseInterface $response

@return \Psr\Http\Message\ResponseInterface
Render Cookies into a response .