public function addCookie(string $key, $value, \DateTimeInterface $expire)
    {
        $this->cookies[$key] = $this->cookieFactory->build($key, $value, $expire);
    }
public function addCookie(string $key, $value, \DateTimeInterface $expire)
    {
        $this->cookies[$key] = $this->cookieFactory->build($key, $value, $expire);
    }
public function addCookie ( string $ key , $ value , \ DateTimeInterface $ expire ) { $ this -> cookies [ $ key ] = $ this -> cookieFactory -> build ( $ key , $ value , $ expire ) ; }
Adds a cookie

@param string             $key    The name of the cookie
@param mixed              $value  The value pf the cookie
@param \DateTimeInterface $expire The expiration date
Adds a cookie