final protected function getCookies() : array
    {
        $cookieMask = $this->contexts['cookies'];
        return empty($cookieMask)
            ? $_COOKIE
            : array_intersect_key($_COOKIE, array_flip($cookieMask));
    }
final protected function getCookies() : array
    {
        $cookieMask = $this->contexts['cookies'];
        return empty($cookieMask)
            ? $_COOKIE
            : array_intersect_key($_COOKIE, array_flip($cookieMask));
    }
final protected function getCookies ( ) : array { $ cookieMask = $ this -> contexts [ 'cookies' ] ; return empty ( $ cookieMask ) ? $ _COOKIE : array_intersect_key ( $ _COOKIE , array_flip ( $ cookieMask ) ) ; }
Get the cookies

@link https://github.com/philkra/elastic-apm-php-agent/issues/30
@link https://github.com/philkra/elastic-apm-php-agent/issues/54

@return array
Get the cookies