src/rpc/json/server/MRPCJsonWebServiceDefinition.php
private function initMethodDefinitionList()
    {
        $class = new \ReflectionClass( $this->className );
        $methods = $class->getMethods( \ReflectionMethod::IS_PUBLIC );

        foreach( $methods as /* @var $reflect \ReflectionMethod */
                 $reflect )
        {
            if( $reflect->class != $this->className )
            {
                continue;
            }

            $docComment = $reflect->getDocComment();
            $phpDoc = array(
                'name' => $reflect->getName(),
                'definition' => implode( "\n", array_map( 'trim', explode( "\n", $docComment ) ) )
            );

            $this->methodDefinitionList[] = $phpDoc;
        }
    }
private function initMethodDefinitionList()
    {
        $class = new \ReflectionClass( $this->className );
        $methods = $class->getMethods( \ReflectionMethod::IS_PUBLIC );

        foreach( $methods as /* @var $reflect \ReflectionMethod */
                 $reflect )
        {
            if( $reflect->class != $this->className )
            {
                continue;
            }

            $docComment = $reflect->getDocComment();
            $phpDoc = array(
                'name' => $reflect->getName(),
                'definition' => implode( "\n", array_map( 'trim', explode( "\n", $docComment ) ) )
            );

            $this->methodDefinitionList[] = $phpDoc;
        }
    }
private function initMethodDefinitionList ( ) { $ class = new \ ReflectionClass ( $ this -> className ) ; $ methods = $ class -> getMethods ( \ ReflectionMethod :: IS_PUBLIC ) ; foreach ( $ methods as /* @var $reflect \ReflectionMethod */ $ reflect ) { if ( $ reflect -> class != $ this -> className ) { continue ; } $ docComment = $ reflect -> getDocComment ( ) ; $ phpDoc = array ( 'name' => $ reflect -> getName ( ) , 'definition' => implode ( "\n" , array_map ( 'trim' , explode ( "\n" , $ docComment ) ) ) ) ; $ this -> methodDefinitionList [ ] = $ phpDoc ; } }
Sets the array of the definitions of the methods.
Sets the array of the definitions of the methods .