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;
    }
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;
    }
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 ; }
Return a list of methods of the callable object to export to javascript

@return array
Return a list of methods of the callable object to export to javascript