original_string: public function cookie($key)
      {
          deprecationWarning(
              'ServerRequest::cookie() is deprecated. ' .
              'Use getCookie() instead.'
          );
  
          if (isset($this->cookies[$key])) {
              return $this->cookies[$key];
          }
  
          return null;
      }
code: public function cookie($key)
      {
          deprecationWarning(
              'ServerRequest::cookie() is deprecated. ' .
              'Use getCookie() instead.'
          );
  
          if (isset($this->cookies[$key])) {
              return $this->cookies[$key];
          }
  
          return null;
      }
code_tokens: public function cookie ( $ key ) { deprecationWarning ( 'ServerRequest::cookie() is deprecated. ' . 'Use getCookie() instead.' ) ; if ( isset ( $ this -> cookies [ $ key ] ) ) { return $ this -> cookies [ $ key ] ; } return null ; }
docstring: Read cookie data from the request's cookie data.
  
  @param string $key The key you want to read.
  @return null|string Either the cookie value, or null if the value doesn't exist.
  @deprecated 3.4.0 Use getCookie() instead.
docstring_tokens: Read cookie data from the request s cookie data .