original_string: public function sharedMaxAge($seconds = null)
      {
          deprecationWarning(
              'Response::sharedMaxAge() is deprecated. ' .
              'Use withSharedMaxAge() instead.'
          );
          if ($seconds !== null) {
              $this->_cacheDirectives['s-maxage'] = $seconds;
              $this->_setCacheControl();
          }
          if (isset($this->_cacheDirectives['s-maxage'])) {
              return $this->_cacheDirectives['s-maxage'];
          }
  
          return null;
      }
code: public function sharedMaxAge($seconds = null)
      {
          deprecationWarning(
              'Response::sharedMaxAge() is deprecated. ' .
              'Use withSharedMaxAge() instead.'
          );
          if ($seconds !== null) {
              $this->_cacheDirectives['s-maxage'] = $seconds;
              $this->_setCacheControl();
          }
          if (isset($this->_cacheDirectives['s-maxage'])) {
              return $this->_cacheDirectives['s-maxage'];
          }
  
          return null;
      }
code_tokens: public function sharedMaxAge ( $ seconds = null ) { deprecationWarning ( 'Response::sharedMaxAge() is deprecated. ' . 'Use withSharedMaxAge() instead.' ) ; if ( $ seconds !== null ) { $ this -> _cacheDirectives [ 's-maxage' ] = $ seconds ; $ this -> _setCacheControl ( ) ; } if ( isset ( $ this -> _cacheDirectives [ 's-maxage' ] ) ) { return $ this -> _cacheDirectives [ 's-maxage' ] ; } return null ; }
docstring: Sets the Cache-Control s-maxage directive.
  
  The max-age is the number of seconds after which the response should no longer be considered
  a good candidate to be fetched from a shared cache (like in a proxy server).
  If called with no parameters, this function will return the current max-age value if any
  
  @deprecated 3.6.5 Use withSharedMaxAge() instead.
  @param int|null $seconds if null, the method will return the current s-maxage value
  @return int|null
docstring_tokens: Sets the Cache - Control s - maxage directive .