protected function convertCookieToArray(CookieInterface $cookie)
    {
        return [
            'name' => $cookie->getName(),
            'value' => $cookie->getValue(),
            'path' => $cookie->getPath(),
            'domain' => $cookie->getDomain(),
            'secure' => $cookie->isSecure(),
            'httponly' => $cookie->isHttpOnly(),
            'expires' => $cookie->getFormattedExpires()
        ];
    }
protected function convertCookieToArray(CookieInterface $cookie)
    {
        return [
            'name' => $cookie->getName(),
            'value' => $cookie->getValue(),
            'path' => $cookie->getPath(),
            'domain' => $cookie->getDomain(),
            'secure' => $cookie->isSecure(),
            'httponly' => $cookie->isHttpOnly(),
            'expires' => $cookie->getFormattedExpires()
        ];
    }
protected function convertCookieToArray ( CookieInterface $ cookie ) { return [ 'name' => $ cookie -> getName ( ) , 'value' => $ cookie -> getValue ( ) , 'path' => $ cookie -> getPath ( ) , 'domain' => $ cookie -> getDomain ( ) , 'secure' => $ cookie -> isSecure ( ) , 'httponly' => $ cookie -> isHttpOnly ( ) , 'expires' => $ cookie -> getFormattedExpires ( ) ] ; }
Convert the cookie into an array of its properties.

This method is compatible with older client code that
expects date strings instead of timestamps.

@param \Cake\Http\Cookie\CookieInterface $cookie Cookie object.
@return array
Convert the cookie into an array of its properties .