concrete/src/Cookie/ResponseCookieJar.php
public function addCookie($name, $value = null, $expire = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true)
    {
        $cookie = new Cookie($name, $value, $expire, $path, $domain, $secure, $httpOnly);
        $this->addCookieObject($cookie);

        return $cookie;
    }
public function addCookie($name, $value = null, $expire = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true)
    {
        $cookie = new Cookie($name, $value, $expire, $path, $domain, $secure, $httpOnly);
        $this->addCookieObject($cookie);

        return $cookie;
    }
public function addCookie ( $ name , $ value = null , $ expire = 0 , $ path = '/' , $ domain = null , $ secure = false , $ httpOnly = true ) { $ cookie = new Cookie ( $ name , $ value , $ expire , $ path , $ domain , $ secure , $ httpOnly ) ; $ this -> addCookieObject ( $ cookie ) ; return $ cookie ; }
Adds a Cookie object to the cookie pantry.

@param string $name The cookie name
@param string|null $value The value of the cookie
@param int $expire The number of seconds until the cookie expires
@param string $path The path for the cookie
@param null|string $domain The domain the cookie is available to
@param bool $secure whether the cookie should only be transmitted over a HTTPS connection from the client
@param bool $httpOnly Whether the cookie will be made accessible only through the HTTP protocol

@return \Symfony\Component\HttpFoundation\Cookie
Adds a Cookie object to the cookie pantry .