public function addCookies(array $cookies)
    {
        $cookieCollection = $this->getCookies();
        foreach ($cookies as $cookie) {
            if (!is_object($cookie)) {
                $cookie = new Cookie($cookie);
            }
            $cookieCollection->add($cookie);
        }
        return $this;
    }
public function addCookies(array $cookies)
    {
        $cookieCollection = $this->getCookies();
        foreach ($cookies as $cookie) {
            if (!is_object($cookie)) {
                $cookie = new Cookie($cookie);
            }
            $cookieCollection->add($cookie);
        }
        return $this;
    }
public function addCookies ( array $ cookies ) { $ cookieCollection = $ this -> getCookies ( ) ; foreach ( $ cookies as $ cookie ) { if ( ! is_object ( $ cookie ) ) { $ cookie = new Cookie ( $ cookie ) ; } $ cookieCollection -> add ( $ cookie ) ; } return $ this ; }
Adds more cookies to the already defined ones.
@param Cookie[]|array $cookies additional cookies.
@return $this self reference.
Adds more cookies to the already defined ones .