public function getCookie($name)
    {
        if (!$this->_cookies->has($name)) {
            return null;
        }

        $cookie = $this->_cookies->get($name);

        return $this->convertCookieToArray($cookie);
    }
public function getCookie($name)
    {
        if (!$this->_cookies->has($name)) {
            return null;
        }

        $cookie = $this->_cookies->get($name);

        return $this->convertCookieToArray($cookie);
    }
public function getCookie ( $ name ) { if ( ! $ this -> _cookies -> has ( $ name ) ) { return null ; } $ cookie = $ this -> _cookies -> get ( $ name ) ; return $ this -> convertCookieToArray ( $ cookie ) ; }
Read a single cookie from the response.

This method provides read access to pending cookies. It will
not read the `Set-Cookie` header if set.

@param string $name The cookie name you want to read.
@return array|null Either the cookie data or null
Read a single cookie from the response .