protected function duplicate(CookieContract $cookie, string $value): CookieContract
    {
        return new SetCookie(
            $cookie->getName(),
            $value,
            $cookie->getExpiresTime(),
            $cookie->getPath(),
            $cookie->getDomain(),
            $cookie->isSecure(),
            $cookie->isHttpOnly()
        );
    }
protected function duplicate(CookieContract $cookie, string $value): CookieContract
    {
        return new SetCookie(
            $cookie->getName(),
            $value,
            $cookie->getExpiresTime(),
            $cookie->getPath(),
            $cookie->getDomain(),
            $cookie->isSecure(),
            $cookie->isHttpOnly()
        );
    }
protected function duplicate ( CookieContract $ cookie , string $ value ) : CookieContract { return new SetCookie ( $ cookie -> getName ( ) , $ value , $ cookie -> getExpiresTime ( ) , $ cookie -> getPath ( ) , $ cookie -> getDomain ( ) , $ cookie -> isSecure ( ) , $ cookie -> isHttpOnly ( ) ) ; }
Duplicate a cookie with a new value.

@param \Viserio\Component\Contract\Cookie\Cookie $cookie
@param string                                    $value

@return \Viserio\Component\Contract\Cookie\Cookie
Duplicate a cookie with a new value .