original_string: public function getMethods()
      {
          $aMethods = [];
          foreach($this->reflectionClass->getMethods(\ReflectionMethod::IS_PUBLIC) as $xMethod)
          {
              $sMethodName = $xMethod->getShortName();
              // Don't take magic __call, __construct, __destruct methods
              if(strlen($sMethodName) > 2 && substr($sMethodName, 0, 2) == '__')
              {
                  continue;
              }
              // Don't take excluded methods
              if(in_array($sMethodName, $this->aProtectedMethods))
              {
                  continue;
              }
              $aMethods[] = $sMethodName;
          }
          return $aMethods;
      }
code: public function getMethods()
      {
          $aMethods = [];
          foreach($this->reflectionClass->getMethods(\ReflectionMethod::IS_PUBLIC) as $xMethod)
          {
              $sMethodName = $xMethod->getShortName();
              // Don't take magic __call, __construct, __destruct methods
              if(strlen($sMethodName) > 2 && substr($sMethodName, 0, 2) == '__')
              {
                  continue;
              }
              // Don't take excluded methods
              if(in_array($sMethodName, $this->aProtectedMethods))
              {
                  continue;
              }
              $aMethods[] = $sMethodName;
          }
          return $aMethods;
      }
code_tokens: public function getMethods ( ) { $ aMethods = [ ] ; foreach ( $ this -> reflectionClass -> getMethods ( \ ReflectionMethod :: IS_PUBLIC ) as $ xMethod ) { $ sMethodName = $ xMethod -> getShortName ( ) ; // Don't take magic __call, __construct, __destruct methods if ( strlen ( $ sMethodName ) > 2 && substr ( $ sMethodName , 0 , 2 ) == '__' ) { continue ; } // Don't take excluded methods if ( in_array ( $ sMethodName , $ this -> aProtectedMethods ) ) { continue ; } $ aMethods [ ] = $ sMethodName ; } return $ aMethods ; }
docstring: Return a list of methods of the callable object to export to javascript
  
  @return array
docstring_tokens: Return a list of methods of the callable object to export to javascript