public function putCookie(array $cookieValues): self
    {
        $cookieValue = '';
        foreach ($cookieValues as $key => $value) {
            $cookieValue .= $key . '=' . urlencode($value) . ';';
        }

        $this->put('Cookie', $cookieValue);
        return $this;
    }
public function putCookie(array $cookieValues): self
    {
        $cookieValue = '';
        foreach ($cookieValues as $key => $value) {
            $cookieValue .= $key . '=' . urlencode($value) . ';';
        }

        $this->put('Cookie', $cookieValue);
        return $this;
    }
public function putCookie ( array $ cookieValues ) : self { $ cookieValue = '' ; foreach ( $ cookieValues as $ key => $ value ) { $ cookieValue .= $ key . '=' . urlencode ( $ value ) . ';' ; } $ this -> put ( 'Cookie' , $ cookieValue ) ; return $ this ; }
creates header for cookie

@param   array  $cookieValues  cookie values
@return  \stubbles\peer\HeaderList
creates header for cookie