public function setCookies($cookies)
    {
        if (!$cookies instanceof CookieBag) {
            $cookies = new CookieBag(CookieBag::normalize($cookies));
        }

        $this->_cookies = $cookies;
    }
public function setCookies($cookies)
    {
        if (!$cookies instanceof CookieBag) {
            $cookies = new CookieBag(CookieBag::normalize($cookies));
        }

        $this->_cookies = $cookies;
    }
public function setCookies ( $ cookies ) { if ( ! $ cookies instanceof CookieBag ) { $ cookies = new CookieBag ( CookieBag :: normalize ( $ cookies ) ) ; } $ this -> _cookies = $ cookies ; }
Defines the setter for cookie property.

@param $cookies
Defines the setter for cookie property .