original_string: public function extensions($extensions = null)
      {
          deprecationWarning(
              'RouteBuilder::extensions() is deprecated. ' .
              'Use RouteBuilder::setExtensions()/getExtensions() instead.'
          );
          if ($extensions === null) {
              return $this->getExtensions();
          }
          $this->setExtensions($extensions);
      }
code: public function extensions($extensions = null)
      {
          deprecationWarning(
              'RouteBuilder::extensions() is deprecated. ' .
              'Use RouteBuilder::setExtensions()/getExtensions() instead.'
          );
          if ($extensions === null) {
              return $this->getExtensions();
          }
          $this->setExtensions($extensions);
      }
code_tokens: public function extensions ( $ extensions = null ) { deprecationWarning ( 'RouteBuilder::extensions() is deprecated. ' . 'Use RouteBuilder::setExtensions()/getExtensions() instead.' ) ; if ( $ extensions === null ) { return $ this -> getExtensions ( ) ; } $ this -> setExtensions ( $ extensions ) ; }
docstring: Get or set the extensions in this route builder's scope.
  
  Future routes connected in through this builder will have the connected
  extensions applied. However, setting extensions does not modify existing routes.
  
  @deprecated 3.5.0 Use getExtensions/setExtensions instead.
  @param null|string|array $extensions Either the extensions to use or null.
  @return array|null
docstring_tokens: Get or set the extensions in this route builder s scope .